diff options
-rw-r--r-- | node_modules/rimraf/package.json | 6 | ||||
-rw-r--r-- | node_modules/rimraf/rimraf.js | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/node_modules/rimraf/package.json b/node_modules/rimraf/package.json index fedc9c3c2..d26d949f9 100644 --- a/node_modules/rimraf/package.json +++ b/node_modules/rimraf/package.json @@ -1,6 +1,6 @@ { "name": "rimraf", - "version": "2.2.5", + "version": "2.2.6", "main": "rimraf.js", "description": "A deep deletion module for node (like `rm -rf`)", "author": { @@ -51,6 +51,6 @@ "url": "https://github.com/isaacs/rimraf/issues" }, "homepage": "https://github.com/isaacs/rimraf", - "_id": "rimraf@2.2.5", - "_from": "rimraf@latest" + "_id": "rimraf@2.2.6", + "_from": "rimraf@~2.2.5" } diff --git a/node_modules/rimraf/rimraf.js b/node_modules/rimraf/rimraf.js index a9258072e..ce62051fc 100644 --- a/node_modules/rimraf/rimraf.js +++ b/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) } } |