return will abort the loop, use continue

This commit is contained in:
Reid 'arrdem' McKenzie 2022-07-28 19:25:45 -06:00
parent 0514e4ebb2
commit b9617079ab

View file

@ -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()