mirror of
https://github.com/fuse-friends/fuse-native
synced 2025-06-13 12:53:54 +00:00
add errno method
This commit is contained in:
parent
9fb41cb2f9
commit
c8eaa11d09
4
index.js
4
index.js
@ -79,6 +79,10 @@ exports.unmount = function (mnt, cb) {
|
|||||||
fuse.unmount(path.resolve(mnt), cb || noop)
|
fuse.unmount(path.resolve(mnt), cb || noop)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
exports.errno = function (code) {
|
||||||
|
return exports[code.toUpperCase()] || -1
|
||||||
|
}
|
||||||
|
|
||||||
exports.EPERM = -1
|
exports.EPERM = -1
|
||||||
exports.ENOENT = -2
|
exports.ENOENT = -2
|
||||||
exports.ESRCH = -3
|
exports.ESRCH = -3
|
||||||
|
Loading…
Reference in New Issue
Block a user