FILE::UMASK 1g 2023-12-14 laplante@plcb.ca GOWEB/FILE


title: “file::umask” version: “1.0.0” date: “2023-12-14” author: “laplante@plcb.ca” section: “1g”

category: “GOWEB/FILE”

Name

file::umask — Get or set the file creation mask (umask).

Synopsis

file::umask or umask([integer, error: variable])

Description

This function returns the current umask.
If an integer parameter is provided, it sets the umask and returns the old value.

The umask will automatically be reset to its old value at the end of the current block.

Parameters

Examples

res={{
    printf("umask=%!o(MISSING)\n", umask());
}}.

Return

res=umask=22.

Author

laplante@plcb.ca

See also

Version