mirror of
https://github.com/fuse-friends/fuse-native
synced 2026-03-02 03:40:15 +00:00
add errno method
This commit is contained in:
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
|
||||||
|
|||||||
Reference in New Issue
Block a user