Constants for use in Fs module.

Note: Not every constant will be available on every operating system.

Fields

X_OK:Int

Flag indicating that the file can be executed by the calling process. Meant for use with Fs.access.

W_OK:Int

Flag indicating that the file can be written by the calling process. Meant for use with Fs.access.

S_IXUSR:Int

File mode indicating executable by owner.

S_IXOTH:Int

File mode indicating executable by others.

S_IXGRP:Int

File mode indicating executable by group.

S_IWUSR:Int

File mode indicating writable by owner.

S_IWOTH:Int

File mode indicating writable by others.

S_IWGRP:Int

File mode indicating writable by group.

S_IRWXU:Int

File mode indicating readable, writable and executable by owner.

S_IRWXO:Int

File mode indicating readable, writable and executable by others.

S_IRWXG:Int

File mode indicating readable, writable and executable by group.

S_IRUSR:Int

File mode indicating readable by owner.

S_IROTH:Int

File mode indicating readable by others.

S_IRGRP:Int

File mode indicating readable by group.

S_IFSOCK:Int

File type constant for a socket.

S_IFREG:Int

File type constant for a regular file.

S_IFMT:Int

Bit mask used to extract the file type code.

S_IFLNK:Int

File type constant for a symbolic link.

S_IFIFO:Int

File type constant for a FIFO/pipe.

S_IFDIR:Int

File type constant for a directory.

S_IFCHR:Int

File type constant for a character-oriented device file.

S_IFBLK:Int

File type constant for a block-oriented device file.

R_OK:Int

Flag indicating that the file can be read by the calling process. Meant for use with Fs.access.

O_WRONLY:Int

Flag indicating to open a file for write-only access.

O_TRUNC:Int

Flag indicating that if the file exists and is a regular file, and the file is opened successfully for write access, its length shall be truncated to zero.

O_SYNC:Int

Flag indicating that the file is opened for synchronous I/O.

O_SYMLINK:Int

Flag indicating to open the symbolic link itself rather than the resource it is pointing to.

O_RDWR:Int

Flag indicating to open a file for read-write access.

O_RDONLY:Int

Flag indicating to open a file for read-only access.

O_NONBLOCK:Int

Flag indicating to open the file in nonblocking mode when possible.

O_NOFOLLOW:Int

Flag indicating that the open should fail if the path is a symbolic link.

O_NOCTTY:Int

Flag indicating that if path identifies a terminal device, opening the path shall not cause that terminal to become the controlling terminal for the process (if the process does not already have one).

O_NOATIME:Int

Flag indicating reading accesses to the file system will no longer result in an update to the atime information associated with the file. This flag is available on Linux operating systems only.

O_EXCL:Int

Flag indicating that opening a file should fail if the O_CREAT flag is set and the file already exists.

O_DIRECTORY:Int

Flag indicating that the open should fail if the path is not a directory.

O_DIRECT:Int

When set, an attempt will be made to minimize caching effects of file I/O.

O_CREAT:Int

Flag indicating to create the file if it does not already exist.

O_APPEND:Int

Flag indicating that data will be appended to the end of the file.

F_OK:Int

Flag indicating that the file is visible to the calling process. Meant for use with Fs.access.