Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

port fix for mkdirp issue #111 #268

Closed
wants to merge 1 commit into from

Conversation

pabigot
Copy link

@pabigot pabigot commented Aug 24, 2016

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

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>
@jprichardson
Copy link
Owner

Great, thanks. Please add a test.

@pabigot
Copy link
Author

pabigot commented Aug 26, 2016

@jprichardson I'll probably do that but I'm going to wait until upstream decides what to do, since IMO variant behavior between fs-extras and mkdirp would be worse than both being wrong the same way.

@manidlou
Copy link
Collaborator

@jprichardson @RyanZim what is this one's destiny?!

@RyanZim
Copy link
Collaborator

RyanZim commented Aug 11, 2018

Upstream mkdirp has never merged the patch, until then, I'm not merging it either.

@manidlou
Copy link
Collaborator

Upstream mkdirp has never merged the patch, until then, I'm not merging it either.

gotcha!

@pabigot
Copy link
Author

pabigot commented Aug 11, 2018

FWIW, since upstream hasn't seen any updates since before this bug was reported I expect it to remain unmerged. At least it's logged in both places, and a fix is available for whoever really needs it.

@RyanZim
Copy link
Collaborator

RyanZim commented Aug 11, 2018

Ah, wasn't aware of that. At fs-extra, we've never documented the made parameter AFAIK; I'm thinking we should just remove this undocumented feature in the next major release, especially since Node.js will be adding a recursive flag to fs.mkdir in a future release (nodejs/node#21875), and I'd like to use that for fse.mkdirp in environments that support it, and Node's method will not support the made parameter.

Edit: if we go this route; #359 can be closed.

@RyanZim
Copy link
Collaborator

RyanZim commented Aug 14, 2018

@manidlou FYI, I have labeled this with feature-ensureDir, since that's an alias for mkdirs, and deleted the feature-mkdirs label.

@RyanZim
Copy link
Collaborator

RyanZim commented May 22, 2019

Since we will be switching to Node's implementation in the future (#619), which does not support this parameter, we'll likely be removing it in the future. Upstream mkdirp has never patched this either. Closing this out.

@RyanZim RyanZim closed this May 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants