1
0
mirror of https://github.com/fuse-friends/fuse-native synced 2024-10-27 18:34:01 +00:00

add errno method

This commit is contained in:
Mathias Buus 2015-03-24 19:20:09 +01:00
parent 9fb41cb2f9
commit c8eaa11d09

View File

@ -79,6 +79,10 @@ exports.unmount = function (mnt, cb) {
fuse.unmount(path.resolve(mnt), cb || noop)
}
exports.errno = function (code) {
return exports[code.toUpperCase()] || -1
}
exports.EPERM = -1
exports.ENOENT = -2
exports.ESRCH = -3