MCPcopy Index your code
hub / github.com/github/copilot-sdk / append_file

Method append_file

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

Source from the content-addressed store, hash-verified

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)
568 p.parent.mkdir(parents=True, exist_ok=True)
569 with p.open("a", encoding="utf-8") as handle:
570 handle.write(content)
571
572 async def exists(self, path: str) -> bool:
573 return self._path(path).exists()

Calls 4

_pathMethod · 0.95
mkdirMethod · 0.65
openMethod · 0.65
writeMethod · 0.45

Tested by

no test coverage detected