MCPcopy
hub / github.com/pytest-dev/pytest / mklinkto

Method mklinkto

src/_pytest/_py/path.py:320–322  ·  view source on GitHub ↗

Posix style hard link to another name.

(self, oldname)

Source from the content-addressed store, hash-verified

318 return error.checked_call(os.readlink, self.strpath) # type: ignore[arg-type,return-value,unused-ignore]
319
320 def mklinkto(self, oldname):
321 """Posix style hard link to another name."""
322 error.checked_call(os.link, str(oldname), str(self))
323
324 def mksymlinkto(self, value, absolute=1):
325 """Create a symbolic link with the given value (pointing to another name)."""

Callers 1

test_hardlinkMethod · 0.80

Calls 1

checked_callMethod · 0.80

Tested by 1

test_hardlinkMethod · 0.64