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
pull/24/head
Garrett Mills 4 years ago committed by GitHub
parent 21658b5ebb
commit 4dfa53b2fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save