0% found this document useful (0 votes)
21 views2 pages

117 Doc Update

Uploaded by

Rahat
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views2 pages

117 Doc Update

Uploaded by

Rahat
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

const COPYFILE_EXCL: 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.
*/
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 the
operation will fail with an error.
*/
const COPYFILE_FICLONE_FORCE: number;

// File Open Constants

/** Constant for fs.open(). Flag indicating to open a file for read-only
access. */
const O_RDONLY: number;

/** Constant for fs.open(). Flag indicating to open a file for write-only
access. */
const O_WRONLY: number;

/** Constant for fs.open(). Flag indicating to open a file for read-write
access. */
const O_RDWR: number;

/** Constant for fs.open(). Flag indicating to create the file if it does
not already exist. */
const O_CREAT: 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. */
const O_EXCL: 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).
*/
const O_NOCTTY: 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. */
const O_TRUNC: number;

/** Constant for fs.open(). Flag indicating that data will be appended to
the end of the file. */
const O_APPEND: number;

/** Constant for fs.open(). Flag indicating that the open should fail if
the path is not a directory. */
const O_DIRECTORY: 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.
*/
const O_NOATIME: number;

/** Constant for fs.open(). Flag indicating that the open should fail if
the path is a symbolic link. */
const O_NOFOLLOW: number;

/** Constant for fs.open(). Flag indicating that the file is opened for
synchronous I/O. */
const O_SYNC: number;

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

/** Constant for fs.open(). Flag indicating to open the symbolic link
itself rather than the resource it is pointing to. */
const O_SYMLINK: number;

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

/** Constant for fs.open(). Flag indicating to open the file in nonblocking
mode when possible. */
const O_NONBLOCK: number;

// File Type Constants

/** Constant for fs.Stats mode property for determining a file's type. Bit
mask used to extract the file type code. */
const S_IFMT: number;

/** Constant for fs.Stats mode property for determining a file's type. File
type constant for a regular file. */
const S_IFREG: number;

/** Constant for fs.Stats mode property for determining a file's type. File
type constant for a directory. */
const S_IFDIR: number;

/** Constant for fs.Stats mode property for determining a file's type. File
type constant for a character-oriented device file. */#* Constant for fs.open().
Flag indicating that the open should fail if the path is not a directory. */

You might also like