Home > Web Front-end > JS Tutorial > body text

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

PHP中文网
Release: 2017-04-01 14:33:17
Original
1465 people have browsed it

Method description:

Synchronized version of fchmod().

Syntax:

fs.fchmodSync(fd, mode)
Copy after login

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));
};
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!