-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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 daeyeon.dev@gmail.com
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 daeyeon.dev@gmail.com PR-URL: #43016 Fixes: #43015 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com>
Hi |
fixes: #43015 Signed-off-by: Daeyeon Jeong daeyeon.dev@gmail.com PR-URL: #43016 Fixes: #43015 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com>
fixes: #43015 Signed-off-by: Daeyeon Jeong daeyeon.dev@gmail.com PR-URL: #43016 Fixes: #43015 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com>
fixes: #43015 Signed-off-by: Daeyeon Jeong daeyeon.dev@gmail.com PR-URL: #43016 Fixes: #43015 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com>
fixes: #43015 Signed-off-by: Daeyeon Jeong daeyeon.dev@gmail.com PR-URL: #43016 Fixes: #43015 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com>
fixes: #43015 Signed-off-by: Daeyeon Jeong daeyeon.dev@gmail.com PR-URL: #43016 Fixes: #43015 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com>
fixes: nodejs/node#43015 Signed-off-by: Daeyeon Jeong daeyeon.dev@gmail.com PR-URL: nodejs/node#43016 Fixes: nodejs/node#43015 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com>
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: