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

Method readdir

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

Source from the content-addressed store, hash-verified

227 return _to_session_fs_error(exc)
228
229 async def readdir(self, params: Any) -> SessionFSReaddirResult:
230 try:
231 entries = await self._p.readdir(params.path)
232 return SessionFSReaddirResult.from_dict({"entries": entries})
233 except Exception as exc:
234 err = _to_session_fs_error(exc)
235 return SessionFSReaddirResult.from_dict({"entries": [], "error": err.to_dict()})
236
237 async def readdir_with_types(self, params: Any) -> SessionFSReaddirWithTypesResult:
238 try:

Callers

nothing calls this directly

Calls 4

_to_session_fs_errorFunction · 0.85
readdirMethod · 0.65
from_dictMethod · 0.45
to_dictMethod · 0.45

Tested by

no test coverage detected