mirror of
https://github.com/Nystik-gh/ignis.git
synced 2026-06-17 04:35:53 +00:00
implement fs shims
This commit is contained in:
20
shims/fs/constants.js
Normal file
20
shims/fs/constants.js
Normal file
@@ -0,0 +1,20 @@
|
||||
// Node.js fs.constants equivalents
|
||||
|
||||
export const constants = {
|
||||
F_OK: 0,
|
||||
R_OK: 4,
|
||||
W_OK: 2,
|
||||
X_OK: 1,
|
||||
|
||||
COPYFILE_EXCL: 1,
|
||||
COPYFILE_FICLONE: 2,
|
||||
COPYFILE_FICLONE_FORCE: 4,
|
||||
|
||||
O_RDONLY: 0,
|
||||
O_WRONLY: 1,
|
||||
O_RDWR: 2,
|
||||
O_CREAT: 64,
|
||||
O_EXCL: 128,
|
||||
O_TRUNC: 512,
|
||||
O_APPEND: 1024,
|
||||
};
|
||||
Reference in New Issue
Block a user