Commit b685d7d6 authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Delete dead symlinks

parent dd805eba
......@@ -133,7 +133,7 @@ class Backup:
def delete(self, dst):
dst_path = os.path.join(self.dst_root,
if os.path.exists(dst_path):
if os.path.lexists(dst_path):
trash_path = os.path.join(self.trash,
trash_dir = os.path.dirname(trash_path)
if not os.path.exists(trash_dir):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment