fs.chmod()
Changes permission bits.
Signature
fs.chmod(path, mode)
Parameters
Text path and signed integer permission bits from 0 through 4095.
Returns
Null.
Behavior
Mode meanings depend on the OS. 0x180 is owner read/write on Unix.
Errors
Unsupported permissions, invalid mode or OS failure.
Example
use fs
p = fs.temporary_file()
fs.chmod(p, 0x180)
fs.remove(p)