mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Merge remote-tracking branch 'origin/bugfix/OP-6952_Resolve-broken-version-management-for-loaded-containers' into bugfix/OP-6952_Resolve-broken-version-management-for-loaded-containers
This commit is contained in:
commit
d36593f2d9
1 changed files with 2 additions and 5 deletions
|
|
@ -240,11 +240,8 @@ def create_media_pool_item(
|
|||
for file in glob.glob(os.path.join(dir_path, base_name)):
|
||||
files.append(file)
|
||||
|
||||
# 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)
|
||||
# keep only existing files
|
||||
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