fn chmod(self: File, new_mode: Mode) ChmodError!void

Changes the mode of the file. The process must have the correct privileges in order to do this successfully, or must have the effective user ID matching the owner of the file.

Parameters

self: File,
new_mode: Mode,