mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
validate extension earlier
Co-authored-by: Roy Nieterau <roy_nieterau@hotmail.com>
This commit is contained in:
parent
688e5f2104
commit
da1a39ed6a
1 changed files with 3 additions and 2 deletions
|
|
@ -539,12 +539,13 @@ class IWorkfileHost:
|
|||
|
||||
items = []
|
||||
for filename in filenames:
|
||||
filepath = os.path.join(workdir, filename)
|
||||
# TODO add 'default' support for folders
|
||||
ext = os.path.splitext(filepath)[1].lower()
|
||||
ext = os.path.splitext(filename)[1].lower()
|
||||
if ext not in extensions:
|
||||
continue
|
||||
|
||||
filepath = os.path.join(workdir, filename)
|
||||
|
||||
rootless_path = f"{rootless_workdir}/{filename}"
|
||||
workfile_entity = workfile_entities_by_path.pop(
|
||||
rootless_path, None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue