__init__.py 307 Bytes
Newer Older
1
2
import llfuse

Gerion Entrup's avatar
Gerion Entrup committed
3
from hlfuse.model import *
4
5
from hlfuse.operations import Operations

6
7
8
9
10
11
12
13
def init(mountpoint, rootnode, options=[]):
    opfs = Operations(rootnode)
    llfuse.init(opfs, mountpoint, options)
    try:
        llfuse.main(single=True)
    except:
        llfuse.close(unmount=False)
        raise