For the latest stable version, please use Emilua API 0.10!

filesystem.mode

Synopsis

local fs = require "filesystem"

fs.mode(user: integer, group: integer, other: integer) -> integer
    return bit.bor(bit.lshift(user, 6), bit.lshift(group, 3), other)
end

Description

A helper function to create POSIX mode permission bits.