MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / _write_to_file

Function _write_to_file

src/command_system/copy_command.py:177–182  ·  view source on GitHub ↗
(text: str, filename: str)

Source from the content-addressed store, hash-verified

175
176
177def _write_to_file(text: str, filename: str) -> str:
178 copy_dir = _copy_dir()
179 copy_dir.mkdir(parents=True, exist_ok=True)
180 path = copy_dir / filename
181 path.write_text(text, encoding="utf-8")
182 return str(path)
183
184
185def _copy_or_write(text: str, filename: str) -> str:

Callers 1

_copy_or_writeFunction · 0.85

Calls 1

_copy_dirFunction · 0.85

Tested by

no test coverage detected