# Access

Accessible = Access ( Path [ , Mode ] )

Returns if the file specified by Path is accessible.

If the value of Mode is:

- gb.Read, then returns if the file can be read. This is the default.
- gb.Write, then returns if the file can be written.
- gb.Exec, then returns if the file can be executed.

The previous flags can be combined with the OR operator.

For a directory, the execution flag means that the directory can be browse.

Example

    PRINT Access("/home/benoit", gb.Write OR gb.Exec)
    True

    PRINT Access("/root", gb.Write)
    False