This commit is contained in:
sjt-rvx 2025-12-22 14:19:35 +01:00 committed by GitHub
commit 688f2f2d19
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -86,6 +86,14 @@ class CleanUp(pyblish.api.InstancePlugin):
f"type is excluded from cleanup: {product_type}")
return
explicit_cleanup_dirs = instance.data.get("explicit_cleanup_dirs", [])
for _dir in explicit_cleanup_dirs:
self.log.debug("Removing explicit cleanup dir {}".format(_dir))
try:
shutil.rmtree(_dir)
except Exception as err:
self.log.debug(f"Could not remove dir {_dir}: {err}")
temp_root = tempfile.gettempdir()
staging_dir = instance.data.get("stagingDir", None)