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