-
Notifications
You must be signed in to change notification settings - Fork 30k
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
fs:mkdir should return path not undefined #46915
Comments
I'd like to fix this if you can point me to the correct code |
Hi @evenstensberg do you have a code snippet to demonstrate that it is returning |
I can see from the doc, it explicitly mentioned that
I think there might be a reason for this behaviour, I'd suggest you wait a little bit until we can hear from the node/fs team or other maintainers. reference: lib/fs, c++ binding |
Related to #43015 |
Seems that the path is added to solve a problem with I do agree we can return |
No one has explicitly said it so far but the ask is to change the callback in That's a backwards incompatible change from the documented behavior (i.e., likely to break existing code) and we don't usually make those unless the benefits clearly outweigh the drawbacks. Being a little more compatible with a third-party module isn't a compelling enough reason. |
Since no one chimed in after my last comment I'm going to close this but let me know if there is reason to reopen. |
What is the problem this feature will solve?
When switching from mkdirp we should allow fs.mkdir return the path, not undefined.
What is the feature you are proposing to solve the problem?
Make fs.mkdir return the path
What alternatives have you considered?
N/A
The text was updated successfully, but these errors were encountered: