From b9617079abcfee5fc82b056f738e60ec15b833c6 Mon Sep 17 00:00:00 2001 From: Reid 'arrdem' McKenzie Date: Thu, 28 Jul 2022 19:25:45 -0600 Subject: [PATCH] return will abort the loop, use continue --- projects/vfs/src/python/vfs/impl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/vfs/src/python/vfs/impl.py b/projects/vfs/src/python/vfs/impl.py index 6ad5656..e8ddda6 100644 --- a/projects/vfs/src/python/vfs/impl.py +++ b/projects/vfs/src/python/vfs/impl.py @@ -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()