Function setReadOnly [src]
Sets whether write permissions are provided.
On Unix, this affects all classes. If this is undesired, use unixSet.
This method DOES NOT set permissions on the filesystem: use File.setPermissions(permissions)
Prototype
pub fn setReadOnly(self: *Self, read_only: bool) void
Parameters
self: *Self
read_only: bool
Source
pub fn setReadOnly(self: *Self, read_only: bool) void {
self.inner.setReadOnly(read_only);
}