MCPcopy Create free account
hub / github.com/NVIDIA/SkillSpector / cleanup

Method cleanup

src/skillspector/input_handler.py:128–132  ·  view source on GitHub ↗

Clean up temporary files created during resolution.

(self)

Source from the content-addressed store, hash-verified

126 )
127
128 def cleanup(self) -> None:
129 """Clean up temporary files created during resolution."""
130 if self._temp_dir and self._temp_dir.exists():
131 shutil.rmtree(self._temp_dir, ignore_errors=True)
132 self._temp_dir = None
133
134 def temp_dir_for_cleanup(self) -> Path | None:
135 """Return the temp directory path if one was created (for caller to clean up after graph)."""

Calls

no outgoing calls