How do I use chmod with Node.js?
There is a method in the package fs, which should do this, but I don\'t know what it takes as the second argument.
fs
The correct way to specify Octal is as follows:
fs.chmodSync('test', 0o755);
Refer to the file modes here.