MCPcopy Create free account
hub / github.com/VectifyAI/OpenKB / _clear_existing_skill_dir

Function _clear_existing_skill_dir

openkb/cli.py:362–368  ·  view source on GitHub ↗

Delete an existing `` /output/skills/ /`` directory.

(kb_dir: Path, name: str)

Source from the content-addressed store, hash-verified

360
361
362def _clear_existing_skill_dir(kb_dir: Path, name: str) -> None:
363 """Delete an existing ``<kb>/output/skills/<name>/`` directory."""
364 from openkb.skill import skill_dir
365
366 target = skill_dir(kb_dir, name)
367 if target.exists():
368 shutil.rmtree(target)
369
370
371def _staging_dir_for(kb_dir: Path, file_path: Path) -> Path:

Callers 1

skill_newFunction · 0.85

Calls 1

skill_dirFunction · 0.90

Tested by

no test coverage detected