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 )
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 )
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)