mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
filter published workfiles by extension
This commit is contained in:
parent
e53962dd6e
commit
d97829a180
1 changed files with 3 additions and 0 deletions
|
|
@ -520,6 +520,9 @@ class IWorkfileHost:
|
|||
# Workfile entity is not in the filesystem
|
||||
# but it is in the database
|
||||
rootless_path = workfile_entity["path"]
|
||||
ext = os.path.splitext(rootless_path)[1].lower()
|
||||
if ext not in extensions:
|
||||
continue
|
||||
filepath = anatomy.fill_root(rootless_path)
|
||||
items.append(WorkfileInfo.new(
|
||||
filepath,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue