pub fn setPermissions(file: File, io: Io, new_permissions: Permissions) SetPermissionsError!void file: Fileio: Ionew_permissions: Permissions305
306
307pub fn setPermissions(file: File, io: Io, new_permissions: Permissions) SetPermissionsError!void {
return io.vtable.fileSetPermissions(io.userdata, file, new_permissions);
}
Also known as "chmod".
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.