git-node-fs
Advanced tools
Comparing version 0.0.2 to 0.1.0
@@ -139,6 +139,11 @@ "use strict"; | ||
if (err) { | ||
if (err.code === "ENOENT") return mkdirp(dirname(path), function (err) { | ||
if (err) return callback(err); | ||
nodeFs.mkdir(path, callback); | ||
}); | ||
if (err.code === "ENOENT") { | ||
return mkdirp(nodePath.dirname(path), function (err) { | ||
if (err) return callback(err); | ||
nodeFs.mkdir(path, function (err) { | ||
if (err && err.code !== "EEXIST") return callback(err); | ||
callback(); | ||
}); | ||
}); | ||
} | ||
if (err.code === "EEXIST") return callback(); | ||
@@ -150,2 +155,1 @@ return callback(err); | ||
} | ||
@@ -8,3 +8,3 @@ { | ||
], | ||
"version": "0.0.2", | ||
"version": "0.1.0", | ||
"main": "lib/node-fs.js", | ||
@@ -11,0 +11,0 @@ "scripts": { |
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
7511
187