You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fs.mkdir recursive edge case potential issues #25110
On my Linux system this does not attempt to chmod the existing path, it reports success as the path already exists even though the mode is wrong.
The same occurs with fs.mkdir, I used fs.mkdirSync in the example as the code is simpler.
I've uncovered these edge cases via sindresorhus/make-dir#7 where I'm working on making that module use the native recursive mkdir when possible. The plan is for make-dir@2 to emulate the native fs.mkdir recursive for older versions of node, so I'm hoping for clarification on these two potential issues.
Activity
bcoe commentedon Dec 21, 2018
@coreyfarrell thanks for finding this, feel free to ping me in slack and we can see if we can't fix this.
doc: fs.mkdir('/') throws EPERM on Windows
doc: fs.mkdir('/') throws EPERM on Windows
doc: fs.mkdir('/') throws EPERM on Windows
doc: fs.mkdir('/') throws EPERM on Windows
doc: fs.mkdir('/') throws EPERM on Windows
doc: fs.mkdir('/') throws EPERM on Windows
doc: fs.mkdir('/') throws EPERM on Windows