Home >Web Front-end >JS Tutorial >Instructions for using the fs.fchmodSync method in node.js

Instructions for using the fs.fchmodSync method in node.js

PHP中文网
PHP中文网Original
2017-04-01 14:33:171510browse

Method description:

Synchronized version of fchmod().

Syntax:

fs.fchmodSync(fd, mode)

Since this method belongs to the fs module, you need to introduce the fs module before use (var fs= require(“fs”) )

Receive parameters:

fd File descriptor

mode File permissions

Source code:

fs.fchmodSync = function(fd, mode) {
  return binding.fchmod(fd, modeNum(mode));
};

The above is fs in node.js .fchmodSync method usage instructions, please pay attention to the PHP Chinese website (www.php.cn) for more related content!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn