From f0aa9ef1b96ab3d8fcaf21ddeb2a03f9ae31214c Mon Sep 17 00:00:00 2001 From: Anders Blomdell <anders.blomdell@control.lth.se> Date: Mon, 23 Mar 2020 14:52:25 +0100 Subject: [PATCH] Hack to make sure there is space for TRASH directory --- secondary.py | 1 + 1 file changed, 1 insertion(+) diff --git a/secondary.py b/secondary.py index d5a1dd5..7377fd6 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) -- GitLab