We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d784e70 commit 2867920Copy full SHA for 2867920
index.js
@@ -31,6 +31,7 @@ function mkdirP (p, opts, f, made) {
31
}
32
switch (er.code) {
33
case 'ENOENT':
34
+ if (path.dirname(p) === p) return cb(er);
35
mkdirP(path.dirname(p), opts, function (er, made) {
36
if (er) cb(er, made);
37
else mkdirP(p, opts, cb, made);
0 commit comments