-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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 is inconsistent in the number of arguments passed to the callback , when completed. #43015
Comments
fixes: nodejs#43015 Signed-off-by: Daeyeon Jeong [email protected]
https://github.com/nodejs/node/blob/master/doc/api/fs.md#fsmkdirpath-options-callback
|
Please let me know if the doc fix isn't enough to resolve your issue. |
fixes: #43015 Signed-off-by: Daeyeon Jeong [email protected] PR-URL: #43016 Fixes: #43015 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: Akhil Marsonya <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Zeyu "Alex" Yang <[email protected]>
Hi |
fixes: #43015 Signed-off-by: Daeyeon Jeong [email protected] PR-URL: #43016 Fixes: #43015 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: Akhil Marsonya <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Zeyu "Alex" Yang <[email protected]>
fixes: #43015 Signed-off-by: Daeyeon Jeong [email protected] PR-URL: #43016 Fixes: #43015 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: Akhil Marsonya <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Zeyu "Alex" Yang <[email protected]>
fixes: #43015 Signed-off-by: Daeyeon Jeong [email protected] PR-URL: #43016 Fixes: #43015 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: Akhil Marsonya <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Zeyu "Alex" Yang <[email protected]>
fixes: #43015 Signed-off-by: Daeyeon Jeong [email protected] PR-URL: #43016 Fixes: #43015 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: Akhil Marsonya <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Zeyu "Alex" Yang <[email protected]>
fixes: #43015 Signed-off-by: Daeyeon Jeong [email protected] PR-URL: #43016 Fixes: #43015 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: Akhil Marsonya <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Zeyu "Alex" Yang <[email protected]>
fixes: nodejs/node#43015 Signed-off-by: Daeyeon Jeong [email protected] PR-URL: nodejs/node#43016 Fixes: nodejs/node#43015 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: Akhil Marsonya <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Zeyu "Alex" Yang <[email protected]>
Version
16.14
Platform
Window/Linux
Subsystem
No response
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
Always
What is the expected behavior?
Always return the same number of arguments.
This is important for example when you pass an async waterfall callback to mkdir.
What do you see instead?
if the directory exists only 1 arguments will be returned (error argument which is null)
if directory is created then it returns null, and the path.
Additional information
No response
The text was updated successfully, but these errors were encountered: