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).】