From 34de25cdb37e9ae937037694e9b2da84ef154fe9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= Date: Wed, 12 Feb 2020 01:27:35 +0100 Subject: [PATCH] rename class --- workdirfs.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/workdirfs.py b/workdirfs.py index 2354c9f..5314b32 100755 --- a/workdirfs.py +++ b/workdirfs.py @@ -21,7 +21,7 @@ except: raise errno.ENOENT -class Passthrough(Operations): +class WorkdirFS(Operations): def __init__(self, root): self.root = root self.timeoffset = 2 #hours @@ -187,7 +187,7 @@ def check_dir(path): return path def main(root, mountpoint): - #FUSE(Passthrough(root), mountpoint, nothreads=True, foreground=True) + #FUSE(WorkdirFS(root), mountpoint, nothreads=True, foreground=True) check_dir(root) check_dir(mountpoint) cleanup_dirs(root) @@ -213,7 +213,7 @@ def main(root, mountpoint): with open(os.environ['HOME']+'/.config/user-dirs.dirs', 'a') as fh: fh.write("XDG_WORK_DIR=\""+mountpoint+'"\n') - FUSE(Passthrough(root), mountpoint, nothreads=True, foreground=True) + FUSE(WorkdirFS(root), mountpoint, nothreads=True, foreground=True) if __name__ == '__main__': #main(sys.argv[2], sys.argv[1])