diff options
Diffstat (limited to 'node_modules/rimraf')
-rw-r--r-- | node_modules/rimraf/package.json | 2 | ||||
-rw-r--r-- | node_modules/rimraf/rimraf.js | 18 |
2 files changed, 2 insertions, 18 deletions
diff --git a/node_modules/rimraf/package.json b/node_modules/rimraf/package.json index 3f7be852d..952bc8af9 100644 --- a/node_modules/rimraf/package.json +++ b/node_modules/rimraf/package.json @@ -1,5 +1,5 @@ {"name":"rimraf" -,"version":"2.0.0" +,"version":"2.0.1" ,"main":"rimraf.js" ,"description":"A deep deletion module for node (like `rm -rf`)" ,"author":"Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)" diff --git a/node_modules/rimraf/rimraf.js b/node_modules/rimraf/rimraf.js index df60c2913..67d018ab4 100644 --- a/node_modules/rimraf/rimraf.js +++ b/node_modules/rimraf/rimraf.js @@ -80,7 +80,7 @@ var myUid = function myUid () { function writable (s) { - var mode = s.mode && 0777 + var mode = s.mode || 0777 , uid = myUid() , gid = myGid() return (mode & 0002) @@ -117,22 +117,6 @@ function rm_ (p, s, didWritableCheck, cb) { }) } -function realish (p, cb) { - fs.readlink(p, function (er, r) { - if (er) return cb(er) - return cb(null, path.resolve(path.dirname(p), r)) - }) -} - -function clobberFail (p, g, cb) { - var er = new Error("Refusing to delete: "+p+" not in "+g) - , constants = require("constants") - er.errno = constants.EEXIST - er.code = "EEXIST" - er.path = p - return cb(er) -} - function asyncForEach (list, fn, cb) { if (!list.length) cb() var c = list.length |