MCPcopy Create free account
hub / github.com/JaredStewart/coderlm / _write_file

Function _write_file

plugin/generate.py:202–208  ·  view source on GitHub ↗
(path: Path, content: str, dry_run: bool)

Source from the content-addressed store, hash-verified

200
201
202def _write_file(path: Path, content: str, dry_run: bool) -> None:
203 if dry_run:
204 print(f" [dry-run] write {path}")
205 return
206 path.parent.mkdir(parents=True, exist_ok=True)
207 path.write_text(content)
208 print(f" Created {path}")
209
210
211def _copy_file(src: Path, dest: Path, dry_run: bool) -> None:

Callers 1

generate_platformFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected