filehandle.chown(uid, gid)


  • uid <integer> 文件的新所有者的用户 ID。
  • gid <integer> 文件的新组的组ID。
  • 返回:<Promise> 成功后用 undefined 完成。

更改文件的所有权。chown(2) 的封装。

🌐 Changes the ownership of the file. A wrapper for chown(2).