Module File.Mode
type t
=[
|
`IRWXU
|
`IRUSR
|
`IWUSR
|
`IXUSR
|
`IRWXG
|
`IRGRP
|
`IWGRP
|
`IXGRP
|
`IRWXO
|
`IROTH
|
`IWOTH
|
`IXOTH
|
`ISUID
|
`ISGID
|
`ISVTX
|
`IFMT
|
`IFREG
|
`IFDIR
|
`IFBLK
|
`IFCHR
|
`IFLNK
|
`IFIFO
|
`NUMERIC of int
]
The bits.
These are accepted by operations such as
Luv.File.chmod
in lists, e.g.[`IRUSR; `IWUSR; `IRGRP; `IROTH]
The special constructor
`NUMERIC
can be used to specify bits directly in octal. The above list is equivalent to:[`NUMERIC 0o644]
`IFREG
is available since Luv 0.5.5.`IFMT
,`IFDIR
,`IFBLK
,`IFCHR
,`IFLNK
,`IFIFO
are available since Luv 0.5.4.
type numeric
Abstract type for a bit field of permissions bits, i.e., an
int
in which multiple bits may be set. These bit fields are returned by operations such asLuv.File.stat
.