This commit is contained in:
jxxghp 2023-06-09 12:27:25 +08:00
parent 5707ddbefb
commit 3638e46bd9

View File

@ -93,7 +93,7 @@ class SystemUtils:
# 遍历目录及子目录
for path in directory.glob('**/*'):
if path.is_file() and re.match(pattern, str(path), re.IGNORECASE):
if path.is_file() and re.match(pattern, path.name, re.IGNORECASE):
files.append(path)
return files