diff options
Diffstat (limited to 'lib/models/fs.js')
-rw-r--r-- | lib/models/fs.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/models/fs.js b/lib/models/fs.js index f124da8..ab65dd5 100644 --- a/lib/models/fs.js +++ b/lib/models/fs.js @@ -33,7 +33,8 @@ FS.prototype.getRoot = function() { */ FS.prototype.isInScope = function(filename) { var rootPath = this.getRoot(); - filename = path.resolve(rootPath, filename); + filename = path.join(rootPath, filename); + return PathUtil.isInRoot(rootPath, filename); }; |