(self, path: str)
| 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) |
nothing calls this directly
no test coverage detected