MCPcopy Create free account
hub / github.com/github/copilot-sdk / _is_enoent

Function _is_enoent

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

Source from the content-addressed store, hash-verified

310
311
312def _is_enoent(exc: Exception) -> bool:
313 if isinstance(exc, FileNotFoundError):
314 return True
315 if isinstance(exc, OSError) and exc.errno == errno.ENOENT:
316 return True
317 return False

Callers 1

_to_session_fs_errorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…