(self, path: str | None = None)
| 1731 | return cast(datetime, info.get("last_modified")) |
| 1732 | |
| 1733 | def invalidate_cache(self, path: str | None = None) -> None: |
| 1734 | if path is None: |
| 1735 | self.dircache.clear() |
| 1736 | else: |
| 1737 | path = self._strip_protocol(path) |
| 1738 | while path: |
| 1739 | self.dircache.pop(path, None) |
| 1740 | path = self._parent(path) |
| 1741 | |
| 1742 | def _ls_from_cache(self, path: str) -> list[S3Object] | S3Object | None: |
| 1743 | """Check the dircache for a cached entry of the path. |
no outgoing calls