mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
fix not existing dirs
This commit is contained in:
parent
a29ebd052a
commit
7006ed8940
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue