MCPcopy Create free account
hub / github.com/modelscope/ms-agent / _write_text

Function _write_text

ms_agent/tools/todolist_tool.py:32–37  ·  view source on GitHub ↗
(path: str, content: str)

Source from the content-addressed store, hash-verified

30
31
32def _write_text(path: str, content: str) -> None:
33 parent = os.path.dirname(path)
34 if parent:
35 _ensure_dir(parent)
36 with open(path, 'w', encoding='utf-8') as f:
37 f.write(content)
38
39
40def _validate_status(status: str) -> str:

Callers 3

_save_plan_lockedMethod · 0.70
todo_writeMethod · 0.70
todo_render_mdMethod · 0.70

Calls 2

writeMethod · 0.80
_ensure_dirFunction · 0.70

Tested by

no test coverage detected