Windows paths #28

Merged
domenic merged 2 commits from windows-paths into master 2012-05-16 08:32:48 -07:00
Showing only changes of commit 01190602da - Show all commits

View file

@ -49,7 +49,7 @@ exports.readdirSyncRecursive = function(baseDir) {
// convert absolute paths to relative // convert absolute paths to relative
var fileList = readdirSyncRecursive(baseDir).map(function(val){ var fileList = readdirSyncRecursive(baseDir).map(function(val){
return val.replace(baseDir + '/', ''); return _path.relative(baseDir, val);
}); });
return fileList; return fileList;
@ -106,7 +106,7 @@ exports.readdirRecursive = function(baseDir, fn) {
fn(null, curFiles.map(function(val) { fn(null, curFiles.map(function(val) {
// convert absolute paths to relative // convert absolute paths to relative
return val.replace(baseDir + '/', ''); return _path.relative(baseDir, val);
})); }));
if (waitCount == 0) { if (waitCount == 0) {