fix not existing dirs

This commit is contained in:
Jakub Trllo 2025-07-07 10:17:55 +02:00
parent a29ebd052a
commit 7006ed8940

View file

@ -362,6 +362,10 @@ def _filter_dir_files_by_ext(
if not ext.startswith("."):
ext = f".{ext}"
dotted_extensions.add(ext)
if not os.path.exists(dirpath):
return [], dotted_extensions
filtered_paths = [
os.path.join(dirpath, filename)
for filename in os.listdir(dirpath)