Skip to content

uv_fs_mkdir returns UV_ENOENT rather than UV_ENOTDIR on Windows #2661

Closed
@bcoe

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

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