Skip to content
Snippets Groups Projects
Commit b685d7d6 authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Delete dead symlinks

parent dd805eba
Branches
No related tags found
No related merge requests found
...@@ -133,7 +133,7 @@ class Backup: ...@@ -133,7 +133,7 @@ class Backup:
def delete(self, dst): def delete(self, dst):
self.log.DEBUG('Delete:', dst.name) self.log.DEBUG('Delete:', dst.name)
dst_path = os.path.join(self.dst_root, 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_path = os.path.join(self.trash, dst.name)
trash_dir = os.path.dirname(trash_path) trash_dir = os.path.dirname(trash_path)
if not os.path.exists(trash_dir): if not os.path.exists(trash_dir):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment