Skip to content

uv_fs_mkdir returns UV_ENOENT rather than UV_ENOTDIR on Windows #2661

Closed

Description

@bcoe

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

Activity

  1. stale commented on Feb 23, 2020

    @stale

    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.

  2. musm commented on Apr 28, 2020

    @musm
    Contributor

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

  3. stale commented on May 19, 2020

    @stale

    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.

  4. bcoe commented on May 20, 2020

    @bcoe
    Author

    @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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions