mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +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 = []
|
items = []
|
||||||
for filename in filenames:
|
for filename in filenames:
|
||||||
filepath = os.path.join(workdir, filename)
|
|
||||||
# TODO add 'default' support for folders
|
# 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:
|
if ext not in extensions:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
filepath = os.path.join(workdir, filename)
|
||||||
|
|
||||||
rootless_path = f"{rootless_workdir}/{filename}"
|
rootless_path = f"{rootless_workdir}/{filename}"
|
||||||
workfile_entity = workfile_entities_by_path.pop(
|
workfile_entity = workfile_entities_by_path.pop(
|
||||||
rootless_path, None
|
rootless_path, None
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue