File.is_writable
is_writable
Group: Metadata
Documentation
Checks whether it the file can be written to.
Remarks
Read-only Files
If a file is read-only, it may still be possible to move or delete it, depending on the permissions associated with its parent directory.
Data Links
If the file is a data link, this checks if the link itself is modifiable.