forked from streamich/unionfs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
lists.ts
117 lines (114 loc) · 1.7 KB
/
lists.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
export const fsSyncMethodsWriteonly = [
"appendFileSync",
"chmodSync",
"chownSync",
"closeSync",
"copyFileSync",
"createWriteStream",
"fchmodSync",
"fchownSync",
"fdatasyncSync",
"fsyncSync",
"futimesSync",
"lchmodSync",
"lchownSync",
"linkSync",
"lstatSync",
"mkdirpSync",
"mkdirSync",
"mkdtempSync",
"renameSync",
"rmdirSync",
"symlinkSync",
"truncateSync",
"unlinkSync",
"utimesSync",
"writeFileSync",
"writeSync"
] as const;
export const fsSyncMethodsReadonly = [
"accessSync",
"createReadStream",
"existsSync",
"fstatSync",
"ftruncateSync",
"openSync",
"readdirSync",
"readFileSync",
"readlinkSync",
"readSync",
"realpathSync",
"statSync"
] as const;
export const fsAsyncMethodsReadonly = [
"access",
"exists",
"fstat",
"open",
"read",
"readdir",
"readFile",
"readlink",
"realpath",
"unwatchFile",
"watch",
"watchFile"
] as const;
export const fsAsyncMethodsWriteonly = [
"appendFile",
"chmod",
"chown",
"close",
"copyFile",
"fchmod",
"fchown",
"fdatasync",
"fsync",
"ftruncate",
"futimes",
"lchmod",
"lchown",
"link",
"lstat",
"mkdir",
"mkdirp",
"mkdtemp",
"rename",
"rmdir",
"stat",
"symlink",
"truncate",
"unlink",
"utimes",
"write",
"writeFile"
] as const;
export const fsPromiseMethodsReadonly = [
"access",
"open",
"opendir",
"readdir",
"readFile",
"readlink",
"realpath"
] as const;
export const fsPromiseMethodsWriteonly = [
"appendFile",
"chmod",
"chown",
"copyFile",
"lchmod",
"lchown",
"link",
"lstat",
"mkdir",
"mkdtemp",
"rename",
"rmdir",
"stat",
"symlink",
"truncate",
"unlink",
"utimes",
"writeFile",
] as const;