![]() |
v1.3.0.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 | OverwriteMode : int |
| enum | FileError : int |
| enum | DirFilter |
| enum | DirFilters : DirFilter |
| enum | DirSort |
| enum | DirSortFlags : DirSort |
| enum OpenModeFlag : uint |
File handling mode flags.
In most cases these can be specified as OR'd enumeration values (eg. ‘FS.O_TEXT | FS.O_WRONLY | FS.O_EXCL’) or using the equivalent character flag(s) as a string (eg. "twx"). The character equivalents, when available, are shown in parenthesis before the description.
| enum OpenMode : OpenModeFlag |
The FS.OpenMode type stores an OR combination of FS.OpenModeFlag values.
| enum FileTime : int |
File date/time enumerations for FileInfo.fileTime(), 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 OverwriteMode : int |
These values define behavior to use when a copy or rename/move operation encounters an existing entry with the same name as the destination.
| 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 filter 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.