MCPcopy Create free account
hub / github.com/github/copilot-sdk / write_file

Method write_file

python/e2e/test_session_fs_e2e.py:561–564  ·  view source on GitHub ↗
(self, path: str, content: str, mode: int | None = None)

Source from the content-addressed store, hash-verified

559 return self._path(path).read_text(encoding="utf-8")
560
561 async def write_file(self, path: str, content: str, mode: int | None = None) -> None:
562 p = self._path(path)
563 p.parent.mkdir(parents=True, exist_ok=True)
564 p.write_text(content, encoding="utf-8")
565
566 async def append_file(self, path: str, content: str, mode: int | None = None) -> None:
567 p = self._path(path)

Calls 2

_pathMethod · 0.95
mkdirMethod · 0.65

Tested by

no test coverage detected