MCPcopy Index your code
hub / github.com/RustPython/RustPython / hardlink_to

Method hardlink_to

Lib/pathlib/__init__.py:1224–1230  ·  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

1222
1223 if hasattr(os, "link"):
1224 def hardlink_to(self, target):
1225 """
1226 Make this path a hard link pointing to the same file as *target*.
1227
1228 Note the order of arguments (self, target) is the reverse of os.link's.
1229 """
1230 os.link(target, self)
1231 else:
1232 def hardlink_to(self, target):
1233 """

Callers 2

test_hardlink_toMethod · 0.80

Calls 1

Tested by 2

test_hardlink_toMethod · 0.64