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)
File.setPermissions(permissions)
self: *Self,
read_only: bool,