joyent/node — Issue #1999: fs.mkdir / fs.mkdirSync - mode parameter
Author: Bonuspunkt
Created: 2011-11-03 07:40:44+00:00
State: open

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