only process file with suffix, not directory.

This commit is contained in:
Hakusai Zhang
2023-07-08 18:20:30 +08:00
committed by GitHub
parent 3597a9590d
commit 0a263f665c

View File

@@ -351,6 +351,8 @@ def movie_lists(source_folder, regexstr: str) -> typing.List[str]:
for full_name in source.glob(r'**/*'):
if main_mode != 3 and set(full_name.parent.parts) & escape_folder_set:
continue
if not full_name.is_file():
continue
if not full_name.suffix.lower() in file_type:
continue
absf = str(full_name)