return will abort the loop, use continue

This commit is contained in:
Reid 'arrdem' McKenzie 2022-07-28 19:25:45 -06:00
parent 0cfedb398a
commit 95043de7e4

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