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

Method write_file

python/copilot/session_fs_provider.py:175–180  ·  view source on GitHub ↗
(self, params: Any)

Source from the content-addressed store, hash-verified

173 return SessionFSReadFileResult.from_dict({"content": "", "error": err.to_dict()})
174
175 async def write_file(self, params: Any) -> SessionFSError | None:
176 try:
177 await self._p.write_file(params.path, params.content, getattr(params, "mode", None))
178 return None
179 except Exception as exc:
180 return _to_session_fs_error(exc)
181
182 async def append_file(self, params: Any) -> SessionFSError | None:
183 try:

Callers

nothing calls this directly

Calls 2

_to_session_fs_errorFunction · 0.85
write_fileMethod · 0.45

Tested by

no test coverage detected