MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / ensure_existing

Function ensure_existing

tasks/scripts/sync_docs_website.py:82–84  ·  view source on GitHub ↗
(path: Path, label: str)

Source from the content-addressed store, hash-verified

80
81
82def ensure_existing(path: Path, label: str) -> None:
83 if not path.exists():
84 raise FileNotFoundError(f"{label} does not exist: {path}")
85
86
87def reset_directory(src: Path, dst: Path, *, preserve_components: bool) -> None:

Callers 4

reset_directoryFunction · 0.85
read_yamlFunction · 0.85
sync_docsFunction · 0.85
remove_docsFunction · 0.85

Calls 1

existsMethod · 0.80

Tested by

no test coverage detected