mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Always use rimraf.sync in files.rm_recursive.
This commit is contained in:
@@ -278,15 +278,7 @@ function statOrNull(path, preserveSymlinks) {
|
||||
|
||||
// Like rm -r.
|
||||
files.rm_recursive = Profile("files.rm_recursive", function (p) {
|
||||
if (Fiber.current && Fiber.yield && ! Fiber.yield.disallowed) {
|
||||
new Promise((resolve, reject) => {
|
||||
rimraf(files.convertToOSPath(p), err => {
|
||||
err ? reject(err) : resolve();
|
||||
});
|
||||
}).await();
|
||||
} else {
|
||||
rimraf.sync(files.convertToOSPath(p));
|
||||
}
|
||||
rimraf.sync(files.convertToOSPath(p));
|
||||
});
|
||||
|
||||
// Makes all files in a tree read-only.
|
||||
|
||||
Reference in New Issue
Block a user