mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
explicit cleanup
This commit is contained in:
parent
9b7de988c2
commit
67d1386347
1 changed files with 8 additions and 0 deletions
|
|
@ -84,6 +84,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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue