From 79ac808e5969f4c3b62728fee7f76b7195d3ff45 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Sun, 17 Aug 2014 08:10:02 -0400 Subject: [PATCH] fix(ischanged) add "/" on win --- lib/server/ischanged.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/server/ischanged.js b/lib/server/ischanged.js index 6125eabe..e57a22fe 100644 --- a/lib/server/ischanged.js +++ b/lib/server/ischanged.js @@ -3,7 +3,6 @@ var fs = require('fs'), os = require('os'), - path = require('path'), Util = require('../util'), time = require('./timem'), @@ -16,8 +15,7 @@ TimesReaded, - DIR_RAW = getDir() || __dirname + '/../../json/', - DIR = path.normalize(DIR_RAW), + DIR = getDir() || __dirname + '/../../json/', NAME_SHORT = DIR + 'changes', NAME = NAME_SHORT + '.json'; @@ -51,7 +49,9 @@ dir += '/ischanged'; if (!WIN) - dir += sign + process.getuid() + '/'; + dir += sign + process.getuid(); + + dir += '/'; } return dir;