Closed
Description
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