From 7f99c7779d4d385fa59167bb13e5c02973f7ef31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= Date: Sun, 22 Mar 2020 04:35:04 +0100 Subject: [PATCH] fix is_link to is_symlink --- workdirfs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workdirfs.py b/workdirfs.py index 91a87a2..8cfc0e2 100755 --- a/workdirfs.py +++ b/workdirfs.py @@ -305,7 +305,7 @@ def main(args): #FUSE(WorkdirFS(root), mountpoint, nothreads=True, foreground=True) # start FUSE filesystem mountpoint = Path(os.path.join(os.environ['HOME'], args.mountpoint)) - if mountpoint.is_link(): + if mountpoint.is_symlink(): mountpoint.unlink(); if mountpoint.exist(): mountpoint.rename(mountpoint + datetime.now().strftime("%Y-%m-%d")