Commit f0aa9ef1 authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Hack to make sure there is space for TRASH directory

parent 3a581ef7
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment