This commit is contained in:
jxxghp
2023-06-09 12:26:45 +08:00
parent 8dd11bb53d
commit 5707ddbefb

View File

@ -89,7 +89,7 @@ class SystemUtils:
@staticmethod
def list_files_with_extensions(directory: Path, extensions: list) -> List[Path]:
files = []
pattern = r".*\.(" + "|".join(extensions) + ")$"
pattern = r".*(" + "|".join(extensions) + ")$"
# 遍历目录及子目录
for path in directory.glob('**/*'):