getFilePermissions()

Retrieves the permissions for a file.

Synopsis

int getFilePermissions( string filename);

Parameters

Parameter Meaning
filename The file path. The relative path is relative to the project directory. An absolute path can be given.

Return value

If the file doesn't exist, the function returns 0.

Error

A wrong number of arguments will throw an exception.

Description

Retreives the permissions set for a file. See also setFilePermissions() for further Information.

Assignment

File functions

Availability

CTRL