PyDocs

Nav

File and Directory Access

Path.hardlink_to

pathlib

method of Path · Added in 3.10 (source)
  • Path.hardlink_to(target)
Make this path a hard link pointing to the same file as *target*.

Note the order of arguments (self, target) is the reverse of os.link's.
Changed in 3.13
  • 3.13: Raises UnsupportedOperation if os.link() is not available. In previous versions, NotImplementedError was raised.
0 Examples
No examples for pathlib/Path.hardlink_to.
See Also
No see-alsos for pathlib/Path.hardlink_to
0 Notes
No notes for Path.hardlink_to