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

forward mount point to init

This commit is contained in:
Mathias Buus 2015-09-03 00:14:48 -04:00
parent 200fa5f276
commit 47d90a050f

View File

@ -51,7 +51,8 @@ exports.mount = function (mnt, ops, cb) {
var init = ops.init || call
ops.init = function (next) {
callback()
init(next)
if (init.length > 1) init(mnt, next) // backwards compat for now
else init(next)
}
var error = ops.error || call