Skip to content

Commit

Permalink
port fix for mkdirp issue jprichardson#111
Browse files Browse the repository at this point in the history
The original mkdirp mis-handles the fourth parameter when a directory
component is missing.  The same issue is present in the fs-extra
variant.

See: https://github.com/substack/node-mkdirp/issues/111
Signed-off-by: Peter A. Bigot <pab@pabigot.com>
  • Loading branch information
pabigot committed Aug 24, 2016
1 parent eefd244 commit 7af1715
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mkdirs/mkdirs.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function mkdirs (p, opts, callback, made) {
mkdirs(path.dirname(p), opts, function (er, made) {
if (er) callback(er, made)
else mkdirs(p, opts, callback, made)
})
}, made)
break

// In the case of any other error, just see if there's a dir
Expand Down

0 comments on commit 7af1715

Please sign in to comment.