Instructions for the fs.fchmodSync method in node.js
- 2020-05-07 19:09:56
- OfStack
method description:
fchmod().
syntax:
fs.fchmodSync(fd, mode)
Since this method belongs to the fs module, the fs module (var fs= require(" fs ")) needs to be introduced before use.
receive parameter:
fd file descriptor
mode file permissions
source code:
fs.fchmodSync = function(fd, mode) {
return binding.fchmod(fd, modeNum(mode));
};