fix bug
This commit is contained in:
@ -89,7 +89,7 @@ class SystemUtils:
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def list_files_with_extensions(directory: Path, extensions: list) -> List[Path]:
|
def list_files_with_extensions(directory: Path, extensions: list) -> List[Path]:
|
||||||
files = []
|
files = []
|
||||||
pattern = r".*\.(" + "|".join(extensions) + ")$"
|
pattern = r".*(" + "|".join(extensions) + ")$"
|
||||||
|
|
||||||
# 遍历目录及子目录
|
# 遍历目录及子目录
|
||||||
for path in directory.glob('**/*'):
|
for path in directory.glob('**/*'):
|
||||||
|
Reference in New Issue
Block a user