mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Convert to os path on process.chdir
This commit is contained in:
@@ -478,16 +478,17 @@ files.getPathsInDir = function (dir, options) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Don't use files.cwd() because we will use process.chdir later
|
||||
var oldCwd = process.cwd();
|
||||
|
||||
var cwd = options && options.cwd;
|
||||
|
||||
if (cwd) {
|
||||
if (! files.exists(cwd)) {
|
||||
throw new Error("Specified current working directory doesn't exist:" +
|
||||
cwd);
|
||||
}
|
||||
|
||||
process.chdir(cwd);
|
||||
process.chdir(files.convertToOSPath(cwd));
|
||||
}
|
||||
|
||||
var output = [];
|
||||
|
||||
Reference in New Issue
Block a user