Method
mkdir
(self, path: str, recursive: bool, mode: int | None = None)
Source from the content-addressed store, hash-verified
| 585 | ) |
| 586 | |
| 587 | async def mkdir(self, path: str, recursive: bool, mode: int | None = None) -> None: |
| 588 | p = self._path(path) |
| 589 | if recursive: |
| 590 | p.mkdir(parents=True, exist_ok=True) |
| 591 | else: |
| 592 | p.mkdir() |
| 593 | |
| 594 | async def readdir(self, path: str) -> list[str]: |
| 595 | return sorted(entry.name for entry in self._path(path).iterdir()) |
Callers
nothing calls this directly
Tested by
no test coverage detected