From 723ed0a433376db093eb7e5a8b4313f09ee74246 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= Date: Sun, 22 Mar 2020 04:37:13 +0100 Subject: [PATCH] fix exist to exists --- workdirfs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workdirfs.py b/workdirfs.py index 8cfc0e2..39c5247 100755 --- a/workdirfs.py +++ b/workdirfs.py @@ -307,7 +307,7 @@ def main(args): mountpoint = Path(os.path.join(os.environ['HOME'], args.mountpoint)) if mountpoint.is_symlink(): mountpoint.unlink(); - if mountpoint.exist(): + if mountpoint.exists(): mountpoint.rename(mountpoint + datetime.now().strftime("%Y-%m-%d") + ''.join(random.choice( string.ascii_uppercase + string.digits) for _ in range(6))