![]() |
v1.2.1.0
|
The FS
namespace holds constants related to file system tasks. They are referenced in JavaScript as FS.<constant>
, eg. FS.O_RDONLY
.
Public Types | |
enum | OpenModeFlag : uint |
enum | OpenMode : OpenModeFlag |
enum | FileTime : int |
enum | Permission : uint |
enum | Permissions : Permission |
enum | FileError : int |
enum | DirFilter |
enum | DirFilters : DirFilter |
enum | DirSort |
enum | DirSortFlags : DirSort |
enum OpenModeFlag : uint |
File handling mode flags.
enum OpenMode : OpenModeFlag |
The FS.OpenMode
type stores an OR combination of FS.OpenModeFlag
values.
enum FileTime : int |
File date/time enumerations for FileHandle.fileTime()
and FileHandle.setFileTime()
. The names are meant to follow GNU/POSIX file info stat
structure names.
Enumerator | |
---|---|
S_ATIME | Access time. |
S_BTIME | Birth/creation time (may not be available). |
S_CTIME | Attribute/status modification time. |
S_MTIME | File modification time. |
enum Permission : uint |
Permission flags returned by permissions()
and used with setPermissions()
. These conform to GNU/Node/etc file mode constants, with the addition of "OWN" (owner) bits. On NTFS the owner may differ from the user. On Unix/POSIX the "USR" bits return owner information as per convention.
enum Permissions : Permission |
The FS.Permissions
type stores an OR combination of FS.Permission
values.
enum FileError : int |
Error type enumeration returned by the FileHandle.error()
method.
enum DirFilter |
This enum describes the filtering options available for Dir.list()
Dir.infoList()
. The sort value is specified by OR-ing together values from the following list.
enum DirFilters : DirFilter |
The DirFilters
type stores an OR combination of DirFilter
values.
enum DirSort |
This enum describes the sort options available for Dir.list()
Dir.infoList()
. The sort value is specified by OR-ing together values from the following list. But only one of SortName
, SortTime
, SortSize
or SortType
can be specified at a time.
If you specify both SortDirsFirst
and SortReversed
, directories are still put first, but in reverse order; the files will be listed after the directories, again in reverse order.
enum DirSortFlags : DirSort |
The DirSortFlags
type stores an OR combination of DirSort
values.