File permissions in specify whether a file can be read, written, or executed
by its owner, its owning group, and everyone else. Instances of this type
can be constructed by combining individual file permissions with the |
operator:
ReadOwner | WriteOwner | ReadGroup | ReadOthers
Alternatively, file permissions may be specified as a string with exactly 9
characters, in the format rwxrwxrwx, where each letter may instead be a
- character. The first three characters represent the permissions of the
owner, the second three characters represent the permissions of the owning
group, and the last three characters represent the permissions of everyone
else.
"rw-r--r--"
Finally, file permissions may be constructed from an octal representation
using the fromOctal function.
FilePermissions.fromOctal("644")