Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Anders Blomdell
hash_backup
Commits
5491e08c
Commit
5491e08c
authored
Apr 03, 2020
by
Anders Blomdell
Browse files
Increase amount to clear in hack
parent
f0aa9ef1
Changes
1
Hide whitespace changes
Inline
Side-by-side
secondary.py
View file @
5491e08c
...
...
@@ -139,7 +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
self
.
make_room
(
256
*
1024
)
# Hack to make sure there is place
os
.
makedirs
(
trash_dir
,
mode
=
0o700
)
os
.
rename
(
dst_path
,
trash_path
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment