MCPcopy Create free account
hub / github.com/917Dhj/DeepPaperNote / ensure_parent

Function ensure_parent

scripts/common.py:49–50  ·  view source on GitHub ↗
(path: str | Path)

Source from the content-addressed store, hash-verified

47
48
49def ensure_parent(path: str | Path) -> None:
50 Path(path).expanduser().resolve().parent.mkdir(parents=True, exist_ok=True)
51
52
53def emit(payload: dict[str, Any], output_path: str | None = None) -> None:

Callers 4

write_jsonlFunction · 0.90
write_full_text_markdownFunction · 0.90
mainFunction · 0.90
emitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected