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

Function _to_session_fs_error

python/copilot/session_fs_provider.py:307–309  ·  view source on GitHub ↗
(exc: Exception)

Source from the content-addressed store, hash-verified

305
306
307def _to_session_fs_error(exc: Exception) -> SessionFSError:
308 code = SessionFSErrorCode.ENOENT if _is_enoent(exc) else SessionFSErrorCode.UNKNOWN
309 return SessionFSError(code=code, message=str(exc))
310
311
312def _is_enoent(exc: Exception) -> bool:

Callers 9

read_fileMethod · 0.85
write_fileMethod · 0.85
append_fileMethod · 0.85
statMethod · 0.85
mkdirMethod · 0.85
readdirMethod · 0.85
readdir_with_typesMethod · 0.85
rmMethod · 0.85
renameMethod · 0.85

Calls 2

_is_enoentFunction · 0.85
SessionFSErrorClass · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…