diff options
Diffstat (limited to 'node_modules/rimraf/rimraf.js')
-rw-r--r-- | node_modules/rimraf/rimraf.js | 18 |
1 files changed, 1 insertions, 17 deletions
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 |