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

Hack to make sure there is space for TRASH directory

parent 3a581ef7
Branches
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment