Product Site

5.4.8.40. setReadOnly

Sets the read-only flag of the file or directory denoted by the absolute path of the target object.

See also methods setWritable, canRead, and canWrite.