mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
Update openpype/hosts/resolve/api/lib.py
Co-authored-by: Roy Nieterau <roy_nieterau@hotmail.com>
This commit is contained in:
parent
b2588636e9
commit
c7df127bec
1 changed files with 1 additions and 3 deletions
|
|
@ -243,9 +243,7 @@ def create_media_pool_item(
|
|||
|
||||
# iterate all files and check if they exists
|
||||
# if not then remove them from list
|
||||
for file in files[:]:
|
||||
if not os.path.exists(file):
|
||||
files.remove(file)
|
||||
files = [f for f in files if os.path.exists(f)]
|
||||
|
||||
# add all data in folder to media pool
|
||||
media_pool_items = media_pool.ImportMedia(files)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue