Refactor folder path handling for validation plugin

Improved folder path processing for better accuracy in validation.
This commit is contained in:
Jakub Jezek 2024-03-27 13:54:16 +01:00
parent 8b1ff95566
commit 9ebb59cc35
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("/")[:-1]
folder_entity["path"].lstrip("/").split("/")[:-1]
)
for folder_entity in folder_entities
}