mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-07 00:16:57 +08:00
fix bug
This commit is contained in:
+1
-1
@@ -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