Message385474
Compare the documentation of `symlink_to()` and `link_to()`:
.. method:: Path.symlink_to(target, target_is_directory=False)
Make this path a symbolic link to *target*.
.. method:: Path.link_to(target)
Create a hard link pointing to a path named *target*.
In fact, `link_to()` does something like:
Make *target* a hard link to this path.
Which is unexpected given the naming and inconsistency with `symlink_to()`, but it's the way the current implementation works, and so the documentation should reflect that.
Adding a replacement `hardlink_to()` function is covered here in bpo-39950. |
|
| Date |
User |
Action |
Args |
| 2021-01-22 04:24:20 | barneygale | set | recipients:
+ barneygale, docs@python |
| 2021-01-22 04:24:20 | barneygale | set | messageid: <[email protected]> |
| 2021-01-22 04:24:20 | barneygale | link | issue42999 messages |
| 2021-01-22 04:24:20 | barneygale | create | |
|