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
Since Path already supports symlinking, it would be reasonable to add hardlinking (e.g. as Path.link_to). But as you said one may as well call os.link(path1, path2).
Activity
tonal commentedon Nov 28, 2018
see https://python-forum.io/Thread-makin-hardlinks-with-pathlib-Path?pid=57399#pid57399
tirkarthi commentedon Nov 29, 2018
Just to add to this os.link supports path-like objects. Adding @pitrou to take a call on this.
pitrou commentedon Nov 30, 2018
Since Path already supports symlinking, it would be reasonable to add hardlinking (e.g. as
Path.link_to). But as you said one may as well callos.link(path1, path2).tirkarthi commentedon Apr 29, 2019
Closing this as a duplicate of bpo-26978 which has an open PR with comments from @pitrou.
Thanks