fix is_link to is_symlink

This commit is contained in:
Jakobus Schürz 2020-03-22 04:35:04 +01:00
parent 67a2a877bb
commit 7f99c7779d

View file

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