(self, path: Union[str, Path])
| 40 | return pathlib.Path(path) |
| 41 | |
| 42 | async def save_as(self, path: Union[str, Path]) -> None: |
| 43 | stream = cast( |
| 44 | Stream, |
| 45 | from_channel( |
| 46 | await self._channel.send( |
| 47 | "saveAsStream", |
| 48 | None, |
| 49 | ) |
| 50 | ), |
| 51 | ) |
| 52 | make_dirs_for_file(path) |
| 53 | await stream.save_as(path) |
| 54 | |
| 55 | async def failure(self) -> Optional[str]: |
| 56 | reason = await self._channel.send( |
nothing calls this directly
no test coverage detected