constants

object constants
class Object
trait Matchable
class Any

Value members

Concrete fields

@JSImport("node:fs", "constants.COPYFILE_EXCL") @native
val COPYFILE_EXCL: Double

Constant for fs.copyFile. Flag indicating the destination file should not be overwritten if it already exists.

Constant for fs.copyFile. Flag indicating the destination file should not be overwritten if it already exists.

@JSImport("node:fs", "constants.COPYFILE_FICLONE") @native
val COPYFILE_FICLONE: Double

Constant for fs.copyFile. copy operation will attempt to create a copy-on-write reflink. If the underlying platform does not support copy-on-write, then a fallback copy mechanism is used.

Constant for fs.copyFile. copy operation will attempt to create a copy-on-write reflink. If the underlying platform does not support copy-on-write, then a fallback copy mechanism is used.

@JSImport("node:fs", "constants.COPYFILE_FICLONE_FORCE") @native

Constant for fs.copyFile. Copy operation will attempt to create a copy-on-write reflink. If the underlying platform does not support copy-on-write, then the operation will fail with an error.

Constant for fs.copyFile. Copy operation will attempt to create a copy-on-write reflink. If the underlying platform does not support copy-on-write, then the operation will fail with an error.

@JSImport("node:fs", "constants.F_OK") @native
val F_OK: Double

Constant for fs.access(). File is visible to the calling process.

Constant for fs.access(). File is visible to the calling process.

@JSImport("node:fs", "constants.O_APPEND") @native
val O_APPEND: Double

Constant for fs.open(). Flag indicating that data will be appended to the end of the file.

Constant for fs.open(). Flag indicating that data will be appended to the end of the file.

@JSImport("node:fs", "constants.O_CREAT") @native
val O_CREAT: Double

Constant for fs.open(). Flag indicating to create the file if it does not already exist.

Constant for fs.open(). Flag indicating to create the file if it does not already exist.

@JSImport("node:fs", "constants.O_DIRECT") @native
val O_DIRECT: Double

Constant for fs.open(). When set, an attempt will be made to minimize caching effects of file I/O.

Constant for fs.open(). When set, an attempt will be made to minimize caching effects of file I/O.

@JSImport("node:fs", "constants.O_DIRECTORY") @native
val O_DIRECTORY: Double

Constant for fs.open(). Flag indicating that the open should fail if the path is not a directory.

Constant for fs.open(). Flag indicating that the open should fail if the path is not a directory.

@JSImport("node:fs", "constants.O_DSYNC") @native
val O_DSYNC: Double

Constant for fs.open(). Flag indicating that the file is opened for synchronous I/O with write operations waiting for data integrity.

Constant for fs.open(). Flag indicating that the file is opened for synchronous I/O with write operations waiting for data integrity.

@JSImport("node:fs", "constants.O_EXCL") @native
val O_EXCL: Double

Constant for fs.open(). Flag indicating that opening a file should fail if the O_CREAT flag is set and the file already exists.

Constant for fs.open(). Flag indicating that opening a file should fail if the O_CREAT flag is set and the file already exists.

@JSImport("node:fs", "constants.O_NOATIME") @native
val O_NOATIME: Double

constant for fs.open(). 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.

constant for fs.open(). 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.

@JSImport("node:fs", "constants.O_NOCTTY") @native
val O_NOCTTY: Double

Constant for fs.open(). 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).

Constant for fs.open(). 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).

@JSImport("node:fs", "constants.O_NOFOLLOW") @native
val O_NOFOLLOW: Double

Constant for fs.open(). Flag indicating that the open should fail if the path is a symbolic link.

Constant for fs.open(). Flag indicating that the open should fail if the path is a symbolic link.

@JSImport("node:fs", "constants.O_NONBLOCK") @native
val O_NONBLOCK: Double

Constant for fs.open(). Flag indicating to open the file in nonblocking mode when possible.

Constant for fs.open(). Flag indicating to open the file in nonblocking mode when possible.

@JSImport("node:fs", "constants.O_RDONLY") @native
val O_RDONLY: Double

Constant for fs.open(). Flag indicating to open a file for read-only access.

Constant for fs.open(). Flag indicating to open a file for read-only access.

@JSImport("node:fs", "constants.O_RDWR") @native
val O_RDWR: Double

Constant for fs.open(). Flag indicating to open a file for read-write access.

Constant for fs.open(). Flag indicating to open a file for read-write access.

@JSImport("node:fs", "constants.O_SYNC") @native
val O_SYNC: Double

Constant for fs.open(). Flag indicating that the file is opened for synchronous I/O.

Constant for fs.open(). Flag indicating that the file is opened for synchronous I/O.

@JSImport("node:fs", "constants.O_TRUNC") @native
val O_TRUNC: Double

Constant for fs.open(). 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.

Constant for fs.open(). 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.

@JSImport("node:fs", "constants.O_WRONLY") @native
val O_WRONLY: Double

Constant for fs.open(). Flag indicating to open a file for write-only access.

Constant for fs.open(). Flag indicating to open a file for write-only access.

@JSImport("node:fs", "constants.R_OK") @native
val R_OK: Double

Constant for fs.access(). File can be read by the calling process.

Constant for fs.access(). File can be read by the calling process.

@JSImport("node:fs", "constants.S_IFBLK") @native
val S_IFBLK: Double

Constant for fs.Stats mode property for determining a file's type. File type constant for a block-oriented device file.

Constant for fs.Stats mode property for determining a file's type. File type constant for a block-oriented device file.

@JSImport("node:fs", "constants.S_IFCHR") @native
val S_IFCHR: Double

Constant for fs.Stats mode property for determining a file's type. File type constant for a character-oriented device file.

Constant for fs.Stats mode property for determining a file's type. File type constant for a character-oriented device file.

@JSImport("node:fs", "constants.S_IFDIR") @native
val S_IFDIR: Double

Constant for fs.Stats mode property for determining a file's type. File type constant for a directory.

Constant for fs.Stats mode property for determining a file's type. File type constant for a directory.

@JSImport("node:fs", "constants.S_IFIFO") @native
val S_IFIFO: Double

Constant for fs.Stats mode property for determining a file's type. File type constant for a FIFO/pipe.

Constant for fs.Stats mode property for determining a file's type. File type constant for a FIFO/pipe.

@JSImport("node:fs", "constants.S_IFLNK") @native
val S_IFLNK: Double

Constant for fs.Stats mode property for determining a file's type. File type constant for a symbolic link.

Constant for fs.Stats mode property for determining a file's type. File type constant for a symbolic link.

@JSImport("node:fs", "constants.S_IFMT") @native
val S_IFMT: Double

Constant for fs.Stats mode property for determining a file's type. Bit mask used to extract the file type code.

Constant for fs.Stats mode property for determining a file's type. Bit mask used to extract the file type code.

@JSImport("node:fs", "constants.S_IFREG") @native
val S_IFREG: Double

Constant for fs.Stats mode property for determining a file's type. File type constant for a regular file.

Constant for fs.Stats mode property for determining a file's type. File type constant for a regular file.

@JSImport("node:fs", "constants.S_IFSOCK") @native
val S_IFSOCK: Double

Constant for fs.Stats mode property for determining a file's type. File type constant for a socket.

Constant for fs.Stats mode property for determining a file's type. File type constant for a socket.

@JSImport("node:fs", "constants.S_IRGRP") @native
val S_IRGRP: Double

Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable by group.

Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable by group.

@JSImport("node:fs", "constants.S_IROTH") @native
val S_IROTH: Double

Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable by others.

Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable by others.

@JSImport("node:fs", "constants.S_IRUSR") @native
val S_IRUSR: Double

Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable by owner.

Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable by owner.

@JSImport("node:fs", "constants.S_IRWXG") @native
val S_IRWXG: Double

Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable, writable and executable by group.

Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable, writable and executable by group.

@JSImport("node:fs", "constants.S_IRWXO") @native
val S_IRWXO: Double

Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable, writable and executable by others.

Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable, writable and executable by others.

@JSImport("node:fs", "constants.S_IRWXU") @native
val S_IRWXU: Double

Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable, writable and executable by owner.

Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable, writable and executable by owner.

@JSImport("node:fs", "constants.S_IWGRP") @native
val S_IWGRP: Double

Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating writable by group.

Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating writable by group.

@JSImport("node:fs", "constants.S_IWOTH") @native
val S_IWOTH: Double

Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating writable by others.

Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating writable by others.

@JSImport("node:fs", "constants.S_IWUSR") @native
val S_IWUSR: Double

Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating writable by owner.

Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating writable by owner.

@JSImport("node:fs", "constants.S_IXGRP") @native
val S_IXGRP: Double

Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating executable by group.

Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating executable by group.

@JSImport("node:fs", "constants.S_IXOTH") @native
val S_IXOTH: Double

Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating executable by others.

Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating executable by others.

@JSImport("node:fs", "constants.S_IXUSR") @native
val S_IXUSR: Double

Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating executable by owner.

Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating executable by owner.

@JSImport("node:fs", "constants.UV_FS_O_FILEMAP") @native
val UV_FS_O_FILEMAP: Double

When set, a memory file mapping is used to access the file. This flag is available on Windows operating systems only. On other operating systems, this flag is ignored.

When set, a memory file mapping is used to access the file. This flag is available on Windows operating systems only. On other operating systems, this flag is ignored.

@JSImport("node:fs", "constants.W_OK") @native
val W_OK: Double

Constant for fs.access(). File can be written by the calling process.

Constant for fs.access(). File can be written by the calling process.

@JSImport("node:fs", "constants.X_OK") @native
val X_OK: Double

Constant for fs.access(). File can be executed by the calling process.

Constant for fs.access(). File can be executed by the calling process.