mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
add to cleanup paths also staging dirs of representations
This commit is contained in:
parent
ca4dffe8ee
commit
f9472ab309
1 changed files with 6 additions and 0 deletions
|
|
@ -41,6 +41,12 @@ class CleanUpFarm(pyblish.api.ContextPlugin):
|
|||
if staging_dir:
|
||||
dirpaths_to_remove.add(os.path.normpath(staging_dir))
|
||||
|
||||
if "representations" in instance.data:
|
||||
for repre in instance.data["reresentations"]:
|
||||
staging_dir = repre.get("stagingDir")
|
||||
if staging_dir:
|
||||
dirpaths_to_remove.add(os.path.normpath(staging_dir))
|
||||
|
||||
if not dirpaths_to_remove:
|
||||
self.log.info("Nothing to remove. Skipping")
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue