Skip to main content

fs.constants

@listenai/lisa_core / Exports / fs / constants

Namespace: constants

fs.constants

Table of contents#

Variables#

Variables#

COPYFILE_EXCL#

Const COPYFILE_EXCL: number

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

Defined in#

node_modules/@types/node/fs.d.ts:1882


COPYFILE_FICLONE#

Const COPYFILE_FICLONE: number

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.

Defined in#

node_modules/@types/node/fs.d.ts:1888


COPYFILE_FICLONE_FORCE#

Const COPYFILE_FICLONE_FORCE: number

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.

Defined in#

node_modules/@types/node/fs.d.ts:1894


F_OK#

Const F_OK: number

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

Defined in#

node_modules/@types/node/fs.d.ts:1868


O_APPEND#

Const O_APPEND: number

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

Defined in#

node_modules/@types/node/fs.d.ts:1924


O_CREAT#

Const O_CREAT: number

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

Defined in#

node_modules/@types/node/fs.d.ts:1908


O_DIRECT#

Const O_DIRECT: number

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

Defined in#

node_modules/@types/node/fs.d.ts:1950


O_DIRECTORY#

Const O_DIRECTORY: number

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

Defined in#

node_modules/@types/node/fs.d.ts:1927


O_DSYNC#

Const O_DSYNC: number

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

Defined in#

node_modules/@types/node/fs.d.ts:1944


O_EXCL#

Const O_EXCL: number

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

Defined in#

node_modules/@types/node/fs.d.ts:1911


O_NOATIME#

Const O_NOATIME: number

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.

Defined in#

node_modules/@types/node/fs.d.ts:1935


O_NOCTTY#

Const O_NOCTTY: number

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).

Defined in#

node_modules/@types/node/fs.d.ts:1918


O_NOFOLLOW#

Const O_NOFOLLOW: number

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

Defined in#

node_modules/@types/node/fs.d.ts:1938


O_NONBLOCK#

Const O_NONBLOCK: number

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

Defined in#

node_modules/@types/node/fs.d.ts:1953


O_RDONLY#

Const O_RDONLY: number

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

Defined in#

node_modules/@types/node/fs.d.ts:1899


O_RDWR#

Const O_RDWR: number

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

Defined in#

node_modules/@types/node/fs.d.ts:1905


O_SYMLINK#

Const O_SYMLINK: number

Constant for fs.open(). Flag indicating to open the symbolic link itself rather than the resource it is pointing to.

Defined in#

node_modules/@types/node/fs.d.ts:1947


O_SYNC#

Const O_SYNC: number

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

Defined in#

node_modules/@types/node/fs.d.ts:1941


O_TRUNC#

Const O_TRUNC: number

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.

Defined in#

node_modules/@types/node/fs.d.ts:1921


O_WRONLY#

Const O_WRONLY: number

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

Defined in#

node_modules/@types/node/fs.d.ts:1902


R_OK#

Const R_OK: number

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

Defined in#

node_modules/@types/node/fs.d.ts:1871


S_IFBLK#

Const S_IFBLK: number

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

Defined in#

node_modules/@types/node/fs.d.ts:1970


S_IFCHR#

Const S_IFCHR: number

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

Defined in#

node_modules/@types/node/fs.d.ts:1967


S_IFDIR#

Const S_IFDIR: number

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

Defined in#

node_modules/@types/node/fs.d.ts:1964


S_IFIFO#

Const S_IFIFO: number

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

Defined in#

node_modules/@types/node/fs.d.ts:1973


S_IFLNK#

Const S_IFLNK: number

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

Defined in#

node_modules/@types/node/fs.d.ts:1976


S_IFMT#

Const S_IFMT: number

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

Defined in#

node_modules/@types/node/fs.d.ts:1958


S_IFREG#

Const S_IFREG: number

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

Defined in#

node_modules/@types/node/fs.d.ts:1961


S_IFSOCK#

Const S_IFSOCK: number

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

Defined in#

node_modules/@types/node/fs.d.ts:1979


S_IRGRP#

Const S_IRGRP: number

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

Defined in#

node_modules/@types/node/fs.d.ts:1999


S_IROTH#

Const S_IROTH: number

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

Defined in#

node_modules/@types/node/fs.d.ts:2011


S_IRUSR#

Const S_IRUSR: number

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

Defined in#

node_modules/@types/node/fs.d.ts:1987


S_IRWXG#

Const S_IRWXG: number

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

Defined in#

node_modules/@types/node/fs.d.ts:1996


S_IRWXO#

Const S_IRWXO: number

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

Defined in#

node_modules/@types/node/fs.d.ts:2008


S_IRWXU#

Const S_IRWXU: number

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

Defined in#

node_modules/@types/node/fs.d.ts:1984


S_IWGRP#

Const S_IWGRP: number

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

Defined in#

node_modules/@types/node/fs.d.ts:2002


S_IWOTH#

Const S_IWOTH: number

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

Defined in#

node_modules/@types/node/fs.d.ts:2014


S_IWUSR#

Const S_IWUSR: number

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

Defined in#

node_modules/@types/node/fs.d.ts:1990


S_IXGRP#

Const S_IXGRP: number

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

Defined in#

node_modules/@types/node/fs.d.ts:2005


S_IXOTH#

Const S_IXOTH: number

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

Defined in#

node_modules/@types/node/fs.d.ts:2017


S_IXUSR#

Const S_IXUSR: number

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

Defined in#

node_modules/@types/node/fs.d.ts:1993


UV_FS_O_FILEMAP#

Const UV_FS_O_FILEMAP: number

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.

Defined in#

node_modules/@types/node/fs.d.ts:2024


W_OK#

Const W_OK: number

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

Defined in#

node_modules/@types/node/fs.d.ts:1874


X_OK#

Const X_OK: number

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

Defined in#

node_modules/@types/node/fs.d.ts:1877

  • 没帮助 0