mirror of
https://github.com/fuse-friends/fuse-native
synced 2024-10-27 18:34:01 +00:00
Add stat mode type constants to Fuse export
sys/stat.h contains bitwise constants for the various stat modes (directory, symlink, &c) that would be useful to have available as constants in Node. From the spec: https://pubs.opengroup.org/onlinepubs/007908799/xsh/sysstat.h.html
This commit is contained in:
parent
21658b5ebb
commit
4dfa53b2fb
9
index.js
9
index.js
@ -771,6 +771,15 @@ Fuse.EDQUOT = -122
|
||||
Fuse.ENOMEDIUM = -123
|
||||
Fuse.EMEDIUMTYPE = -124
|
||||
|
||||
// Mode type constants (from sys/stat.h)
|
||||
Fuse.S_IFMT = 61440
|
||||
Fuse.S_IFBLK = 24567
|
||||
Fuse.S_IFCHR = 8192
|
||||
Fuse.S_IFIFO = 4096
|
||||
Fuse.S_IFREG = 32768
|
||||
Fuse.S_IFDIR = 16384
|
||||
Fuse.S_IFLNK = 40960
|
||||
|
||||
// Forward configuration functions through the exported class.
|
||||
Fuse.beforeMount = beforeMount
|
||||
Fuse.beforeUnmount = beforeUnmount
|
||||
|
Loading…
Reference in New Issue
Block a user