fn setReadOnly(self: *Self, read_only: bool) void

Sets whether write permissions are provided. This method DOES NOT set permissions on the filesystem: use File.setPermissions(permissions)

Parameters

self: *Self,
read_only: bool,