Refactor folder path extraction logic for validation plugin

Adjust how folder paths are processed for better accuracy.
This commit is contained in:
Jakub Jezek 2024-03-27 13:36:41 +01:00
parent 93b6ded5df
commit 8b1ff95566
No known key found for this signature in database
GPG key ID: 730D7C02726179A7

View file

@ -35,7 +35,7 @@ class ValidateEditorialAssetName(pyblish.api.ContextPlugin):
existing_folder_paths = {
folder_entity["path"]: (
folder_entity["path"].lstrip("/").rsplit("/")[0]
folder_entity["path"].lstrip("/").rsplit("/")[:-1]
)
for folder_entity in folder_entities
}