You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
pathlib.Path.hardlink_to()
method that supersedeslink_to()
#18909pathlib.Path.link_to()
documentation. #24294Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: