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

Method stat

python/e2e/test_session_fs_e2e.py:575–585  ·  view source on GitHub ↗
(self, path: str)

Source from the content-addressed store, hash-verified

573 return self._path(path).exists()
574
575 async def stat(self, path: str) -> SessionFsFileInfo:
576 p = self._path(path)
577 info = p.stat()
578 timestamp = dt.datetime.fromtimestamp(info.st_mtime, tz=dt.UTC)
579 return SessionFsFileInfo(
580 is_file=not p.is_dir(),
581 is_directory=p.is_dir(),
582 size=info.st_size,
583 mtime=timestamp,
584 birthtime=timestamp,
585 )
586
587 async def mkdir(self, path: str, recursive: bool, mode: int | None = None) -> None:
588 p = self._path(path)

Callers

nothing calls this directly

Calls 3

_pathMethod · 0.95
SessionFsFileInfoClass · 0.90
statMethod · 0.65

Tested by

no test coverage detected