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 }}
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
mode is ignored on windows, so it should be a optional parameter / have a default value
>node -v
v0.5.10
>node --eval "require('fs').mkdirSync('newDir')"
fs.js:361
return binding.mkdir(path, modeNum(mode));
^
TypeError: Bad argument
at Object.mkdirSync (fs.js:361:18)
at Object. (eval at (eval:1:75))
at Object. (eval:1:63)
at Module._compile (module.js:432:26)
at startup (node.js:84:14)
at node.js:534:3
Activity
fs: make mkdir() default to 0777 permissions
bnoordhuis commentedon Nov 3, 2011
bnoordhuis/node@11d68eb - review anyone?
koichik commentedon Nov 3, 2011
@bnoordhuis - LGTM.
bnoordhuis commentedon Nov 3, 2011
@koichik: Thanks! Merged in 11d68eb.
Fix comment to correctly reflect octal value.
Fix comment to correctly reflect octal value.