From 7af17151e137cb805fd54aa46f8f998821d4cc81 Mon Sep 17 00:00:00 2001 From: "Peter A. Bigot" Date: Wed, 24 Aug 2016 17:03:25 -0500 Subject: [PATCH] port fix for mkdirp issue #111 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 --- lib/mkdirs/mkdirs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mkdirs/mkdirs.js b/lib/mkdirs/mkdirs.js index 939776c4..e291187f 100644 --- a/lib/mkdirs/mkdirs.js +++ b/lib/mkdirs/mkdirs.js @@ -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