MCPcopy Index your code
hub / github.com/SnailDev/github-hot-hub / write_text

Function write_text

util.py:24–27  ·  view source on GitHub ↗
(file: str, text: str)

Source from the content-addressed store, hash-verified

22
23
24def write_text(file: str, text: str):
25 ensure_dir(file)
26 with open(file, 'w') as f:
27 f.write(text)

Callers

nothing calls this directly

Calls 1

ensure_dirFunction · 0.85

Tested by

no test coverage detected