return will abort the loop, use continue
This commit is contained in:
parent
0cfedb398a
commit
95043de7e4
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ class Vfs(object):
|
|||
_, dest = e
|
||||
# Note that a path which is a dangling symlink will NOT exist but WILL be a symlink
|
||||
if not dest.exists() and not dest.is_symlink():
|
||||
return
|
||||
continue
|
||||
# Files and dirs just unlink
|
||||
if dest.is_symlink() or dest.is_file():
|
||||
dest.unlink()
|
||||
|
|
Loading…
Reference in a new issue