Comparing version
@@ -37,3 +37,7 @@ | ||
Filewalker.prototype._path = function(p) { | ||
return path.relative(this.root, p).split('\\').join('/'); | ||
if(path.relative) { | ||
return path.relative(this.root, p).split('\\').join('/'); | ||
} else { | ||
return p.substr(this.root.length).split('\\').join('/'); | ||
} | ||
}; | ||
@@ -40,0 +44,0 @@ |
{ | ||
"name": "filewalker", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Fast and rock-solid asynchronous traversing of directories and files for node.js", | ||
@@ -20,3 +20,4 @@ "author": { | ||
"engines": {"node": ">= 0.4.x"}, | ||
"dependencies": {}, | ||
"dependencies": { | ||
}, | ||
"scripts": { | ||
@@ -23,0 +24,0 @@ "test": "mocha -R spec" |
Sorry, the diff of this file is not supported yet
27752
0.4%722
0.56%