fix a bug in list_files_with_name

This commit is contained in:
Tong Zeng 2022-11-10 10:34:03 +08:00
parent ac08562854
commit 893191cab2
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ def list_files_with_name(filename):
continue continue
path = os.path.join(dirpath, filename) path = os.path.join(dirpath, filename)
if os.path.isfile(filename): if os.path.isfile(path):
res.append(path) res.append(path)
return res return res