(self, params: Any)
| 165 | self._p = provider |
| 166 | |
| 167 | async def read_file(self, params: Any) -> SessionFSReadFileResult: |
| 168 | try: |
| 169 | content = await self._p.read_file(params.path) |
| 170 | return SessionFSReadFileResult.from_dict({"content": content}) |
| 171 | except Exception as exc: |
| 172 | err = _to_session_fs_error(exc) |
| 173 | return SessionFSReadFileResult.from_dict({"content": "", "error": err.to_dict()}) |
| 174 | |
| 175 | async def write_file(self, params: Any) -> SessionFSError | None: |
| 176 | try: |
nothing calls this directly
no test coverage detected