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

Documentation: native fs.mkdir *does* seem to return the first directory created? #48

Open
valadaptive opened this issue Jun 28, 2024 · 1 comment

Comments

@valadaptive
Copy link

The comparison of recursive mkdir implementations says that Node's built-in fs.mkdir doesn't return the first directory created.

However, the official Node documentation says it does so when {recursive: true} is passed:

Returns: Upon success, fulfills with undefined if recursive is false, or the first directory path created if recursive is true.

Was this added in a later Node version not specified in the docs, or does it behave differently from mkdirp? If not, it may be worth clarifying in the readme.

@isaacs
Copy link
Owner

isaacs commented Jun 29, 2024

Ah yeah, I think that's outdated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants