diff --git a/secondary.py b/secondary.py index d5a1dd56278a2fbf4c772b0c6f6fead9f29b948e..7377fd6852f5e18d935ae27802bb5fee77c496d6 100644 --- a/secondary.py +++ b/secondary.py @@ -139,6 +139,7 @@ class Backup: trash_path = os.path.join(self.trash, dst.name) trash_dir = os.path.dirname(trash_path) if not os.path.exists(trash_dir): + self.make_room(128*1024) # Hack to make sure there is place os.makedirs(trash_dir, mode=0o700) os.rename(dst_path, trash_path)