fn chown(self: File, owner: ?Uid, group: ?Gid) ChownError!void

Changes the owner and group of the file. The process must have the correct privileges in order to do this successfully. The group may be changed by the owner of the file to any group of which the owner is a member. If the owner or group is specified as null, the ID is not changed.

Parameters

self: File,
owner: ?Uid,
group: ?Gid,