Skip to content

Conversation

@RyanZim
Copy link
Collaborator

@RyanZim RyanZim commented Feb 6, 2020

Resolves #619

Everything should work similarly to how it did before; except that we no longer return a file path on success (to match fs.mkdir). Also, errors may be different

Breaking Changes:

  • We no longer return a file path on success (to match fs.mkdir)
  • We do not allow creating root on Windows (matches fs.mkdir)
  • Error codes are a bit different

https://github.com/sindresorhus/make-dir

@RyanZim RyanZim added this to the 9.0.0 milestone Feb 6, 2020
@coveralls
Copy link

coveralls commented Feb 6, 2020

Coverage Status

Coverage decreased (-3.8%) to 81.85% when pulling b0d3a82 on ryan/make-dir into cdc7745 on master.

Copy link
Owner

@jprichardson jprichardson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Concept ACK

Copy link

@brody4hire brody4hire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would strongly favor keeping the fork of the mkdirs implementation in its own package somewhere. It should be possible to swap this kind of implementation without too much extra junk in the git history.

I did discover an existing mkdirs package that has not been updated for 5 years or so. Maybe time for someone to update or renew it?

@RyanZim
Copy link
Collaborator Author

RyanZim commented Feb 13, 2020

@brodybits Our previous code was a fork of an old version of https://www.npmjs.com/package/mkdirp. That package is well-maintained, our fork is much less-so.

@brody4hire

This comment has been minimized.

@RyanZim

This comment has been minimized.

Resolves #619

Everything should work similarly to how it did before; except that
we no longer return a file path on success (to match fs.mkdir).
Also, errors may be different.
- Error codes are different
- Match fs.mkdir behavior on Windows when creating root
@RyanZim
Copy link
Collaborator Author

RyanZim commented Feb 14, 2020

Rebased and added new commits fixing issues above.

@RyanZim RyanZim requested a review from manidlou February 14, 2020 13:33
@RyanZim
Copy link
Collaborator Author

RyanZim commented Feb 17, 2020

@jprichardson @manidlou @JPeer264 Ready for final review

Copy link
Collaborator

@JPeer264 JPeer264 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@RyanZim RyanZim merged commit ab92b24 into master Feb 18, 2020
@RyanZim RyanZim deleted the ryan/make-dir branch February 18, 2020 16:41
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.

Recursive mkdir coming to Node core

7 participants