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

Method readlink

src/_pytest/_py/path.py:315–318  ·  src/_pytest/_py/path.py::LocalPath.readlink

Return value of a symbolic link.

(self)

Source from the content-addressed store, hash-verified

313 error.checked_call(os.chown, str(self), uid, gid)
314
315 def readlink(self) -> str:
316 class="st">""class="st">"Return value of a symbolic link."class="st">""
317 class="cm"># https://github.com/python/mypy/issues/12278
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">""

Callers 3

copyMethod · 0.80
test_symlink_relativeMethod · 0.80

Calls 1

checked_callMethod · 0.80

Tested by 2

test_symlink_relativeMethod · 0.64