Exemple #1
0
def mount(path: str, **kwargs):
    if not query.get_root_node():
        logger.critical('Root node not found. Aborting.')
        return
    if not os.path.isdir(path):
        logger.critical('Mount directory does not exist.')
        return

    FUSE(ACDFuse(), path, entry_timeout=60, auto_cache=True,
         nothreads=True,  # threading will break the caching
         uid=os.getuid(), gid=os.getgid(),
         **kwargs
         )
Exemple #2
0
def mount(path: str, args: dict, **kwargs):
    if not query.get_root_node():
        logger.critical('Root node not found. Aborting.')
        return 1
    if not os.path.isdir(path):
        logger.critical('Mountpoint does not exist or already used.')
        return 1

    FUSE(ACDFuse(**args), path, entry_timeout=60, attr_timeout=60, auto_cache=True,
         uid=os.getuid(), gid=os.getgid(),
         subtype=ACDFuse.__name__,
         **kwargs
         )
Exemple #3
0
def mount(path: str, args: dict, **kwargs):
    if not query.get_root_node():
        logger.critical('Root node not found. Aborting.')
        return 1
    if not os.path.isdir(path):
        logger.critical('Mountpoint does not exist or already used.')
        return 1

    FUSE(ACDFuse(**args),
         path,
         entry_timeout=60,
         attr_timeout=60,
         auto_cache=True,
         uid=os.getuid(),
         gid=os.getgid(),
         subtype=ACDFuse.__name__,
         **kwargs)