fs.lchownSync(path, uid, gid)
-
uid<integer> 文件的新所有者的用户 ID。¥
uid<integer> The file's new owner's user id. -
gid<integer> 文件的新群组的组 ID。¥
gid<integer> The file's new group's group id.
设置路径的所有者。返回 undefined。
¥Set the owner for the path. Returns undefined.
有关更多详细信息,请参阅 POSIX lchown(2) 文档。
¥See the POSIX lchown(2) documentation for more details.