Gambas Documentation - /lang/chmod

/lang/chmod

# CHMOD

Since 3.1

CHMOD Path TO Mode

Change the permissions of the specified file or directory.

- Path is the file or directory path.

- Mode is a string that describes the new mode.

The syntax of the Mode string is described here.

Moreover, any omitted or unknown character in that string is ignored. That way, you can change only specific parts of the file permissions you need to change.

### Examples

    Chmod "~/Documents" To "rwxr-x---"

### See also

- File & Directory Functions

- File mode syntax