Ignore hidden files when captioning

This commit is contained in:
Jaret Burkett
2026-04-25 17:38:31 -06:00
parent 998a02f30e
commit 67d67f8c1d

View File

@@ -148,7 +148,7 @@ class BaseCaptioner(BaseExtensionProcess):
for root, dirs, files in os.walk(self.caption_config.path_to_caption):
for file in files:
if any(
file.lower().endswith(f".{ext}")
file.lower().endswith(f".{ext}") and not file.startswith(".")
for ext in self.caption_config.extensions
):
full_path = os.path.join(root, file)