From f053753fdb40f7cf3fc0d1c1825fb814712cdf3b Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 11 Dec 2025 11:00:28 +0800 Subject: [PATCH] bugfix --- appPublic/folderUtils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/appPublic/folderUtils.py b/appPublic/folderUtils.py index 806bd68..c39e9b1 100755 --- a/appPublic/folderUtils.py +++ b/appPublic/folderUtils.py @@ -72,8 +72,9 @@ def listFolder(path, rescursive=False) : for name in os.listdir(path) : full_name = os.path.join(path,name) if os.path.isdir(full_name): - for f in listFolder(full_name, rescursive=rescursive): - yield f + if rescursive: + for f in listFolder(full_name, rescursive=rescursive): + yield f yield full_name def listFile(folder,suffixs=[],rescursive=False):