filesystem.umask

Synopsis

local fs = require "filesystem"
fs.umask(mask: integer) -> integer

Description

Sets the file mode creation mask (umask) of the calling process to mask & 0777.

Returns the old mask.

Only the master VM is allowed to use this function.