diff --git a/secondary.py b/secondary.py index f519bfa27cc1edb6d9d2a1411c6673cb41cfde7b..e2128f72a3b91a54060627496d12589c79317e7a 100644 --- a/secondary.py +++ b/secondary.py @@ -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):