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

uv_fs_mkdir returns UV_ENOENT rather than UV_ENOTDIR on Windows #2661

Closed
bcoe opened this issue Feb 2, 2020 · 4 comments
Closed

uv_fs_mkdir returns UV_ENOENT rather than UV_ENOTDIR on Windows #2661

bcoe opened this issue Feb 2, 2020 · 4 comments
Labels

Comments

@bcoe
Copy link

bcoe commented Feb 2, 2020

When you call us_fs_mkdir on a nested file path, e.g.,

vcbuild.bat/foo/bar

Where vcbuild.bat is a file and not a directory, OSX/Linux returns ENOTDIR:

 errno: -20,
 syscall: 'mkdir',
 code: 'ENOTDIR',
 path: 'vcbuild.bat/foo/bar'

whereas Windows 2012 Server edition returns:

 errno: -4058,
 syscall: 'mkdir',
 code: 'ENOENT',
 path: 'vcbuild.bat/foo/bar'

This is resulting in some slight inconsistencies in how errors are reported in Node.js' recursive mkdir behavior, see: nodejs/node#31607

  • Version: 1.34.2
  • Platform: Windows Server 2012 64 Bit
@stale
Copy link

stale bot commented Feb 23, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Feb 23, 2020
@musm
Copy link
Contributor

musm commented Apr 28, 2020

Does this only occur on Windows 2012? Or do you also get this on newer versions of Windows 10.

@stale stale bot removed the stale label Apr 28, 2020
@stale
Copy link

stale bot commented May 19, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label May 19, 2020
@bcoe
Copy link
Author

bcoe commented May 20, 2020

@musm I'm not sure what VM I was using when I opened this. Having landed our work around mkdir recursive, I haven't seen many complaints about this issue, let's close unless this crops up again in the future.

@bcoe bcoe closed this as completed May 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants