From 79a060fecf39bac9a95d98b9561f555159346fc2 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Sun, 17 Aug 2014 07:52:03 -0400 Subject: [PATCH] feature(ischanged) add normilize of path --- lib/server/ischanged.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/server/ischanged.js b/lib/server/ischanged.js index 74ceca83..8bdff5b5 100644 --- a/lib/server/ischanged.js +++ b/lib/server/ischanged.js @@ -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) {