GetFilePermissions Function

Retrieves a file or directories permissions.

bool GetFilePermissions(const char[] path, int& mode)

Parameters

const char[] path

Path to the file.

int& mode

Variable to store the permissions in.

Return Value

True on success, false otherwise.