Comparing version 0.2.2 to 0.3.0
11
index.js
@@ -31,3 +31,2 @@ var path = require('path'); | ||
if (er2 || !stat.isDirectory()) cb(er) | ||
else if ((stat.mode & 0777) !== mode) fs.chmod(p, mode, cb); | ||
else cb(); | ||
@@ -72,12 +71,2 @@ }); | ||
if (!stat.isDirectory()) throw err0; | ||
else if ((stat.mode & 0777) !== mode) { | ||
try { | ||
fs.chmodSync(p, mode); | ||
} | ||
catch (err) { | ||
if (err && err.code === 'EPERM') return null; | ||
else throw err; | ||
} | ||
return null; | ||
} | ||
else return null; | ||
@@ -84,0 +73,0 @@ break; |
{ | ||
"name" : "mkdirp", | ||
"description" : "Recursively mkdir, like `mkdir -p`", | ||
"version" : "0.2.2", | ||
"version" : "0.3.0", | ||
"author" : "James Halliday <mail@substack.net> (http://substack.net)", | ||
@@ -6,0 +6,0 @@ "main" : "./index", |
@@ -35,3 +35,2 @@ var mkdirp = require('../').mkdirp; | ||
t.ok(stat && stat.isDirectory(), 'should be directory'); | ||
t.equal(stat && stat.mode & 0777, mode, 'should be 0755'); | ||
t.end(); | ||
@@ -38,0 +37,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15020
361