Replace the path with target.
(self, target: str | AsyncPath | Path)
| 101 | return self.__class__(result) |
| 102 | |
| 103 | async def replace(self, target: str | AsyncPath | Path) -> AsyncPath: |
| 104 | """Replace the path with target.""" |
| 105 | result = await asyncio.to_thread(self._path.replace, target) |
| 106 | return self.__class__(result) |
| 107 | |
| 108 | async def symlink_to( |
| 109 | self, target: str | Path, target_is_directory: bool = False |