FileMode
Mode to use with 'Development.
File mode (such as permissions).
The file type and mode. See inode(7) for details.
Combines two file modes into one that only contains modes that appear
in both.
setFileMode path mode changes permission of the file given by
path to
mode. This operation may fail with
throwErrnoPathIfMinus1_ if
path doesn't exist or if
the effective user ID of the current process is not that of the file's
owner.
Note: calls
chmod.
Owner, group and others have read and write permission.
Combines the two file modes into one that contains modes that appear
in either.
setFileMode path mode changes permission of the file given by
path to
mode. This operation may fail with
throwErrnoPathIfMinus1_ if
path doesn't exist or if
the effective user ID of the current process is not that of the file's
owner.
Note: calls
chmod.
setFileMode path mode changes permission of the file given by
path to
mode. This operation may fail with
throwErrnoPathIfMinus1_ if
path doesn't exist or if
the effective user ID of the current process is not that of the file's
owner.
Note: calls
chmod.
Refers to file permissions, NOT the st_mode field from stat(2)
Pretty-print a
FileMode. The format is similar to the one
ls(1): It is display as three blocks of three characters. The first
block are the permissions of the user, the second one are the ones of
the group and the third one the ones of other subjects. A
r
denotes that the file or directory is readable by the subject, a
w denotes that it is writable and an
x denotes that
it is executable. Unset permissions are represented by
-.
A wrapper around
setFileMode. On Windows, it does check the
resulting file mode of the file/directory and emits a warning if it
doesn't match the desired file mode. On all other OS it is identical
to
setFileMode as it is assumed to work correctly.
The default permissions for the files, permissions not set on Windows,
and are set to rw on Unix. This mimics the behavior of the zip
utility.
Convert external attributes to the file info. The function assumes a
regular file and keeps DOS attributes untouched.
>>> fromFileMode 0o0755
2179792896
Convert external attributes to the file info.
>>> toFileMode 2179792896
0o0755
Returns the mode that sendfile was compiled with. Mainly for debugging
use. Possible values are WIN32_SENDFILE,
LINUX_SENDFILE, FREEBSD_SENDFILE,
DARWIN_SENDFILE, and PORTABLE_SENDFILE.