SetFilePermissions Function

Changes a file or directories permissions.

bool SetFilePermissions(const char[] path, int mode)

Parameters

const char[] path

Path to the file.

int mode

Permissions to set.

Return Value

True on success, false otherwise.