Using fs.chmod(path, mode, callback) I set the mode to 777. It didn't work properly. But when I set it to 0777, it worked.
So I want to know what the difference is between chmod 777 and chmod 0777?
Using fs.chmod(path, mode, callback) I set the mode to 777. It didn't work properly. But when I set it to 0777, it worked.
So I want to know what the difference is between chmod 777 and chmod 0777?