rimraf@2.2.6

This commit is contained in:
isaacs
2014-01-19 15:43:01 -08:00
parent 1101b6ad8c
commit a3891b6692
2 changed files with 5 additions and 5 deletions

6
node_modules/rimraf/package.json generated vendored
View File

@@ -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"
}

4
node_modules/rimraf/rimraf.js generated vendored
View File

@@ -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)
}
}