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

Method mklinkto

src/_pytest/_py/path.py:320–322  ·  src/_pytest/_py/path.py::LocalPath.mklinkto

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) class="cm"># type: ignore[arg-type,return-value,unused-ignore]
319
320 def mklinkto(self, oldname):
321 class="st">""class="st">"Posix style hard link to another name."class="st">""
322 error.checked_call(os.link, str(oldname), str(self))
323
324 def mksymlinkto(self, value, absolute=1):
325 class="st">""class="st">"Create a symbolic link with the given value (pointing to another name)."class="st">""

Callers 1

test_hardlinkMethod · 0.80

Calls 1

checked_callMethod · 0.80

Tested by 1

test_hardlinkMethod · 0.64