diff --git a/index.js b/index.js index 78dfa49..7386e34 100644 --- a/index.js +++ b/index.js @@ -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