Xgit v0.7.1 Xgit.FileMode View Source
Describes the file type as represented on disk.
Link to this section Summary
Functions
Mode indicating an entry is an executable file.
Return true
if the file mode represents an executable file.
Mode indicating an entry is a submodule commit in another repository.
Return true
if the file mode represents a submodule commit in another repository.
This guard requires the value to be one of the known git file mode values.
Mode indicating an entry is a non-executable file.
Return true
if the file mode represents a regular file.
Mode indicating an entry is a symbolic link.
Return true
if the file mode a symbolic link.
Return a rendered version of this file mode as an octal charlist.
Mode indicating an entry is a tree (aka directory).
Return true
if the file mode represents a tree.
Return true
if the value is one of the known file mode values.
Link to this section Types
An integer describing the file type as represented on disk.
Git uses a variation on the Unix file permissions flags to denote a file's intended type on disk. The following values are recognized:
0o100644
- normal file0o100755
- executable file0o120000
- symbolic link0o040000
- tree (subdirectory)0o160000
- submodule (aka gitlink)
This module is intended to be use
d. Doing so will create an alias
to the module
so as to make FileMode.t
available for typespecs and will import
the
is_file_mode/1
guard.
Link to this section Functions
Mode indicating an entry is an executable file.
Return true
if the file mode represents an executable file.
Mode indicating an entry is a submodule commit in another repository.
Return true
if the file mode represents a submodule commit in another repository.
This guard requires the value to be one of the known git file mode values.
Mode indicating an entry is a non-executable file.
Return true
if the file mode represents a regular file.
Mode indicating an entry is a symbolic link.
Return true
if the file mode a symbolic link.
Return a rendered version of this file mode as an octal charlist.
No leading zeros are included.
Optimized for the known file modes. Errors out for any other mode.
Mode indicating an entry is a tree (aka directory).
Return true
if the file mode represents a tree.
Return true
if the value is one of the known file mode values.