From 5707ddbefb4c8c6f9271b507a728d55d5ab23ca3 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Fri, 9 Jun 2023 12:26:45 +0800 Subject: [PATCH] fix bug --- app/utils/system.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/utils/system.py b/app/utils/system.py index 02e57757..b586c62b 100644 --- a/app/utils/system.py +++ b/app/utils/system.py @@ -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('**/*'):