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
b685d7d6
Commit
b685d7d6
authored
Jun 25, 2019
by
Anders Blomdell
Browse files
Delete dead symlinks
parent
dd805eba
Changes
1
Show whitespace changes
Inline
Side-by-side
secondary.py
View file @
b685d7d6
...
@@ -133,7 +133,7 @@ class Backup:
...
@@ -133,7 +133,7 @@ class Backup:
def
delete
(
self
,
dst
):
def
delete
(
self
,
dst
):
self
.
log
.
DEBUG
(
'Delete:'
,
dst
.
name
)
self
.
log
.
DEBUG
(
'Delete:'
,
dst
.
name
)
dst_path
=
os
.
path
.
join
(
self
.
dst_root
,
dst
.
name
)
dst_path
=
os
.
path
.
join
(
self
.
dst_root
,
dst
.
name
)
if
os
.
path
.
exists
(
dst_path
):
if
os
.
path
.
l
exists
(
dst_path
):
trash_path
=
os
.
path
.
join
(
self
.
trash
,
dst
.
name
)
trash_path
=
os
.
path
.
join
(
self
.
trash
,
dst
.
name
)
trash_dir
=
os
.
path
.
dirname
(
trash_path
)
trash_dir
=
os
.
path
.
dirname
(
trash_path
)
if
not
os
.
path
.
exists
(
trash_dir
):
if
not
os
.
path
.
exists
(
trash_dir
):
...
...
Write
Preview
Markdown
is supported
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