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):
self.log.DEBUG('Delete:', dst.name)
dst_path = os.path.join(self.dst_root, dst.name)
if os.path.exists(dst_path):
if os.path.lexists(dst_path):
trash_path = os.path.join(self.trash, dst.name)
trash_dir = os.path.dirname(trash_path)
if not os.path.exists(trash_dir):
......
Markdown is supported
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