Módulo fs_constants
fsMódulo Módulo de definición de constantes comúns
Método de referencia:
1var constants = require('fs').constants
constante
SEEK_SET
buscar constante do método, pasar á posición absoluta
1const fs_constants.SEEK_SET = 0;
SEEK_CUR
buscar constante do método, mover á posición relativa da posición actual
1const fs_constants.SEEK_CUR = 1;
SEEK_END
constante de modo de busca, móvese á posición relativa do final do ficheiro
1const fs_constants.SEEK_END = 2;
UV_FS_SYMLINK_DIR
1const fs_constants.UV_FS_SYMLINK_DIR = 1;
UV_FS_SYMLINK_JUNCTION
1const fs_constants.UV_FS_SYMLINK_JUNCTION = 2;
O_RDONLY
1const fs_constants.O_RDONLY = 0;
O_WRONLY
1const fs_constants.O_WRONLY = 1;
O_RDWR
1const fs_constants.O_RDWR = 2;
UV_DIRENT_UNKNOWN
1const fs_constants.UV_DIRENT_UNKNOWN = 0;
UV_DIRENT_FILE
1const fs_constants.UV_DIRENT_FILE = 1;
UV_DIRENT_DIR
1const fs_constants.UV_DIRENT_DIR = 2;
UV_DIRENT_LINK
1const fs_constants.UV_DIRENT_LINK = 3;
UV_DIRENT_FIFO
1const fs_constants.UV_DIRENT_FIFO = 4;
UV_DIRENT_SOCKET
1const fs_constants.UV_DIRENT_SOCKET = 5;
UV_DIRENT_CHAR
1const fs_constants.UV_DIRENT_CHAR = 6;
UV_DIRENT_BLOCK
1const fs_constants.UV_DIRENT_BLOCK = 7;
S_IFMT
1const fs_constants.S_IFMT = 61440;
S_IFREG
1const fs_constants.S_IFREG = 32768;
S_IFDIR
1const fs_constants.S_IFDIR = 16384;
S_IFCHR
1const fs_constants.S_IFCHR = 8192;
S_IFBLK
1const fs_constants.S_IFBLK = 24576;
S_IFIFO
1const fs_constants.S_IFIFO = 4096;
S_IFLNK
1const fs_constants.S_IFLNK = 40960;
S_IFSOCK
1const fs_constants.S_IFSOCK = 49152;
O_CREAT
1const fs_constants.O_CREAT = 512;
O_EXCL
1const fs_constants.O_EXCL = 2048;
UV_FS_O_FILEMAP
1const fs_constants.UV_FS_O_FILEMAP = 0;
O_NOCTTY
1const fs_constants.O_NOCTTY = 131072;
O_TRUNC
1const fs_constants.O_TRUNC = 1024;
O_APPEND
1const fs_constants.O_APPEND = 8;
O_DIRECTORY
1const fs_constants.O_DIRECTORY = 1048576;
O_NOFOLLOW
1const fs_constants.O_NOFOLLOW = 256;
O_SYNC
1const fs_constants.O_SYNC = 128;
O_DSYNC
1const fs_constants.O_DSYNC = 4194304;
O_SYMLINK
1const fs_constants.O_SYMLINK = 2097152;
O_NONBLOCK
1const fs_constants.O_NONBLOCK = 4;
S_IRWXU
1const fs_constants.S_IRWXU = 448;
S_IRUSR
1const fs_constants.S_IRUSR = 256;
S_IWUSR
1const fs_constants.S_IWUSR = 128;
S_IXUSR
1const fs_constants.S_IXUSR = 64;
S_IRWXG
1const fs_constants.S_IRWXG = 56;
S_IRGRP
1const fs_constants.S_IRGRP = 32;
S_IWGRP
1const fs_constants.S_IWGRP = 16;
S_IXGRP
1const fs_constants.S_IXGRP = 8;
S_IRWXO
1const fs_constants.S_IRWXO = 7;
S_IROTH
1const fs_constants.S_IROTH = 4;
S_IWOTH
1const fs_constants.S_IWOTH = 2;
S_IXOTH
1const fs_constants.S_IXOTH = 1;
F_OK
1const fs_constants.F_OK = 0;
R_OK
1const fs_constants.R_OK = 4;
W_OK
1const fs_constants.W_OK = 2;
X_OK
1const fs_constants.X_OK = 1;
UV_FS_COPYFILE_EXCL
1const fs_constants.UV_FS_COPYFILE_EXCL = 1;
COPYFILE_EXCL
1const fs_constants.COPYFILE_EXCL = 1;
UV_FS_COPYFILE_FICLONE
1const fs_constants.UV_FS_COPYFILE_FICLONE = 2;
COPYFILE_FICLONE
1const fs_constants.COPYFILE_FICLONE = 2;
UV_FS_COPYFILE_FICLONE_FORCE
1const fs_constants.UV_FS_COPYFILE_FICLONE_FORCE = 4;
COPYFILE_FICLONE_FORCE
1const fs_constants.COPYFILE_FICLONE_FORCE = 4;