温馨提示:本站仅提供公开网络链接索引服务,不存储、不篡改任何第三方内容,所有内容版权归原作者所有
AI智能索引来源:http://www.bun.com/reference/node/fs/constants
点击访问原文链接

Node fs.constants object | API Reference | Bun

Node fs.constants object | API Reference | BunBuildDocsReferenceGuidesBlogDiscord/node:fs/constantsVCOPYFILE_EXCLVCOPYFILE_FICLONEVCOPYFILE_FICLONE_FORCEVF_OKVO_APPENDVO_CREATVO_DIRECTVO_DIRECTORYVO_DSYNCVO_EXCLVO_NOATIMEVO_NOCTTYVO_NOFOLLOWVO_NONBLOCKVO_RDONLYVO_RDWRVO_SYMLINKVO_SYNCVO_TRUNCVO_WRONLYVR_OKVS_IFBLKVS_IFCHRVS_IFDIRVS_IFIFOVS_IFLNKVS_IFMTVS_IFREGVS_IFSOCKVS_IRGRPVS_IROTHVS_IRUSRVS_IRWXGVS_IRWXOVS_IRWXUVS_IWGRPVS_IWOTHVS_IWUSRVS_IXGRPVS_IXOTHVS_IXUSRVUV_FS_O_FILEMAPVW_OKVX_OK

Search the reference...

/

BuildDocsReferenceGuidesBlogDiscord/node:fs/constantsVCOPYFILE_EXCLVCOPYFILE_FICLONEVCOPYFILE_FICLONE_FORCEVF_OKVO_APPENDVO_CREATVO_DIRECTVO_DIRECTORYVO_DSYNCVO_EXCLVO_NOATIMEVO_NOCTTYVO_NOFOLLOWVO_NONBLOCKVO_RDONLYVO_RDWRVO_SYMLINKVO_SYNCVO_TRUNCVO_WRONLYVR_OKVS_IFBLKVS_IFCHRVS_IFDIRVS_IFIFOVS_IFLNKVS_IFMTVS_IFREGVS_IFSOCKVS_IRGRPVS_IROTHVS_IRUSRVS_IRWXGVS_IRWXOVS_IRWXUVS_IWGRPVS_IWOTHVS_IWUSRVS_IXGRPVS_IXOTHVS_IXUSRVUV_FS_O_FILEMAPVW_OKVX_OK

namespace

fs.constantsnamespace constantsconst COPYFILE_EXCL: number

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

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.

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.

const F_OK: number

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

const O_APPEND: number

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

const O_CREAT: number

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

const O_DIRECT: number

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

const O_DIRECTORY: number

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

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.

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.

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.

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

const O_NOFOLLOW: number

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

const O_NONBLOCK: number

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

const O_RDONLY: number

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

const O_RDWR: number

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

const O_SYMLINK: number

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

const O_SYNC: number

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

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.

const O_WRONLY: number

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

const R_OK: number

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

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.

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.

const S_IFDIR: number

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

const S_IFIFO: number

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

const S_IFLNK: number

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

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.

const S_IFREG: number

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

const S_IFSOCK: number

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

const S_IRGRP: number

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

const S_IROTH: number

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

const S_IRUSR: number

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

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.

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.

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.

const S_IWGRP: number

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

const S_IWOTH: number

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

const S_IWUSR: number

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

const S_IXGRP: number

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

const S_IXOTH: number

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

const S_IXUSR: number

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

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.

const W_OK: number

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

const X_OK: number

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

Resources

ReferenceDocsGuidesDiscordMerch StoreGitHubBlog 

Toolkit

RuntimePackage managerTest runnerBundlerPackage runner

Project

Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicense

Baked with ❤️ in San Francisco

We're hiring →

Node fs.constants object | API Reference | Bun,AI智能索引,全网链接索引,智能导航,网页索引

    API documentation for namespace node:fs.constants | Bun