MCPcopy Create free account
hub / github.com/ResearAI/DeepReviewer-v2 / write_text_atomic

Function write_text_atomic

deepreview/storage.py:55–59  ·  view source on GitHub ↗
(path: Path, content: str)

Source from the content-addressed store, hash-verified

53
54
55def write_text_atomic(path: Path, content: str) -> None:
56 path.parent.mkdir(parents=True, exist_ok=True)
57 tmp = path.with_suffix(path.suffix + '.tmp')
58 tmp.write_text(content, encoding='utf-8')
59 tmp.replace(path)
60
61
62def read_json(path: Path) -> dict[str, Any]:

Callers 3

run_job_asyncFunction · 0.90
_consume_run_resultFunction · 0.90
set_final_markdownMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected