mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 01:17:18 +00:00
feature(ischanged) add normilize of path
This commit is contained in:
parent
abf5ebf750
commit
79a060fecf
1 changed files with 3 additions and 1 deletions
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
var fs = require('fs'),
|
||||
os = require('os'),
|
||||
path = require('path'),
|
||||
|
||||
Util = require('../util'),
|
||||
time = require('./timem'),
|
||||
|
|
@ -16,7 +17,8 @@
|
|||
TimesReaded,
|
||||
|
||||
DIR = getDir() || __dirname + '/../../json/',
|
||||
NAME_SHORT = DIR + 'changes',
|
||||
DIR_NORM = path.normalize(DIR),
|
||||
NAME_SHORT = DIR_NORM + 'changes',
|
||||
NAME = NAME_SHORT + '.json';
|
||||
|
||||
function getTimes(callback) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue