aboutsummaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/rimraf/rimraf.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/rimraf/rimraf.js')
-rw-r--r--deps/npm/node_modules/rimraf/rimraf.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/deps/npm/node_modules/rimraf/rimraf.js b/deps/npm/node_modules/rimraf/rimraf.js
index a9258072ee..ce62051fc5 100644
--- a/deps/npm/node_modules/rimraf/rimraf.js
+++ b/deps/npm/node_modules/rimraf/rimraf.js
@@ -110,7 +110,7 @@ function rmdir (p, originalEr, cb) {
// if we guessed wrong, and it's not a directory, then
// raise the original error.
fs.rmdir(p, function (er) {
- if (er && (er.code === "ENOTEMPTY" || er.code === "EEXIST"))
+ if (er && (er.code === "ENOTEMPTY" || er.code === "EEXIST" || er.code === "EPERM"))
rmkids(p, cb)
else if (er && er.code === "ENOTDIR")
cb(originalEr)
@@ -165,7 +165,7 @@ function rmdirSync (p, originalEr) {
return
if (er.code === "ENOTDIR")
throw originalEr
- if (er.code === "ENOTEMPTY" || er.code === "EEXIST")
+ if (er.code === "ENOTEMPTY" || er.code === "EEXIST" || er.code === "EPERM")
rmkidsSync(p)
}
}