(self, path: str, content: str, mode: int | None = None)
| 564 | p.write_text(content, encoding="utf-8") |
| 565 | |
| 566 | async def append_file(self, path: str, content: str, mode: int | None = None) -> None: |
| 567 | p = self._path(path) |
| 568 | p.parent.mkdir(parents=True, exist_ok=True) |
| 569 | with p.open("a", encoding="utf-8") as handle: |
| 570 | handle.write(content) |
| 571 | |
| 572 | async def exists(self, path: str) -> bool: |
| 573 | return self._path(path).exists() |
no test coverage detected