SetUNIXPermissions (open)

Set unix permissions for a file.

Syntax

LOADLIB "wh::files.whlib";

BOOLEAN FUNCTION SetUNIXPermissions(STRING path, INTEGER permissions)

Parameters

STRING path

Path to file to update

INTEGER permissions

New file permissions (eg ToInteger("755",0,8) for publicly readable files)

Return value

BOOLEAN

True on success