Rename this path to the given path, clobbering the existing destination if it exists.
(self, target)
| 1521 | self._accessor.rename(self, target) |
| 1522 | |
| 1523 | def replace(self, target): |
| 1524 | """ |
| 1525 | Rename this path to the given path, clobbering the existing |
| 1526 | destination if it exists. |
| 1527 | """ |
| 1528 | if sys.version_info < (3, 3): |
| 1529 | raise NotImplementedError("replace() is only available " |
| 1530 | "with Python 3.3 and later") |
| 1531 | if self._closed: |
| 1532 | self._raise_closed() |
| 1533 | self._accessor.replace(self, target) |
| 1534 | |
| 1535 | def symlink_to(self, target, target_is_directory=False): |
| 1536 | """ |
no test coverage detected