The "xzip_get_readonly" Function
Syntax#
| Argument | Type | Description |
|---|---|---|
arch | string | The full path and filename of the archive to check |
file | string/integer | The name or index of a file to check |
Description#
Checks whether the read-only flag is enabled or disabled for the given file and returns true or false. If the input archive or file within do not exist, false will also be returned, as this indicates the archive/file can be written.
This function does not support folders as file inputs.
Example#
This will check if a file is read-only before attempting to rename it.

X1