Home > Article > Web Front-end > Instructions for using the fs.lchownSync method in node.js_node.js
Method description:
Synchronized version of lchown() .
Grammar:
Since this method belongs to the fs module, the fs module needs to be introduced before use (var fs= require(“fs”) )
Receive parameters:
path Directory path
uid User ID
gid Group identity (referring to the identity of the user of the shared resource system)
Example:
Source code: