MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / hardlink_to

Method hardlink_to

tools/python-3.11.9-amd64/Lib/pathlib.py:1200–1208  ·  view source on GitHub ↗

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.

(self, target)

Source from the content-addressed store, hash-verified

1198 os.symlink(target, self, target_is_directory)
1199
1200 def hardlink_to(self, target):
1201 """
1202 Make this path a hard link pointing to the same file as *target*.
1203
1204 Note the order of arguments (self, target) is the reverse of os.link's.
1205 """
1206 if not hasattr(os, "link"):
1207 raise NotImplementedError("os.link() not available on this system")
1208 os.link(target, self)
1209
1210 def link_to(self, target):
1211 """

Callers 1

link_toMethod · 0.80

Calls 1

linkMethod · 0.45

Tested by

no test coverage detected