Method description:
Change file ownership (file descriptor).
Grammar:
Since this method belongs to the fs module, the fs module needs to be introduced before use (var fs= require(“fs”) )
Receive parameters:
fd File descriptor
uid User ID
gid Group identity (referring to the identity of the user of the shared resource system)
callback Callback, passing the exception parameter err
Example:
Source code: