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

Method exists

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

Source from the content-addressed store, hash-verified

187 return _to_session_fs_error(exc)
188
189 async def exists(self, params: Any) -> SessionFSExistsResult:
190 try:
191 result = await self._p.exists(params.path)
192 return SessionFSExistsResult.from_dict({"exists": result})
193 except Exception:
194 return SessionFSExistsResult.from_dict({"exists": False})
195
196 async def stat(self, params: Any) -> SessionFSStatResult:
197 try:

Callers

nothing calls this directly

Calls 2

existsMethod · 0.65
from_dictMethod · 0.45

Tested by

no test coverage detected