-
Notifications
You must be signed in to change notification settings - Fork 30.5k
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.mkdirSync on windows make something wrong #35987
Comments
let path = "资料架标准:-外观统一,保持干净整洁、无灰尘、无破损" ,making the problem too. |
In that particular case, Windows will return an Line 135 in 2a1273c
On Windows, libuv doesn't make a difference between ENOENT and ENOTDIR - something that has been by now deeply embedded in all the unit tests and the user code base.
And this is what Line 1370 in 2a1273c
The right decision would be to make that bold move and correctly translate the Windows error codes? |
In fact, this mapping has been made on a purpose in Node v0.8.19: |
/cc @richardlau
My suggestion will be to fix it in libuv this time with a custom error mapping for mkdir just like that one: Line 1227 in 456b4e1
|
@mmomtchev Since this is in libuv code it should be discussed over in https://github.com/libuv/libuv. I think this issue is the same/similar to #31177? In which case there's an open PR to change the mapping of cc @nodejs/platform-windows |
Thanks!Who commented under this give me a new way to think. |
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
What is the expected behavior?
What do you see instead?
Additional information
The text was updated successfully, but these errors were encountered: