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

Method readlink

src/_pytest/_py/path.py:315–318  ·  view source on GitHub ↗

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 """Return value of a symbolic link."""
317 # https://github.com/python/mypy/issues/12278
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."""

Callers 3

copyMethod · 0.80
test_symlink_relativeMethod · 0.80

Calls 1

checked_callMethod · 0.80

Tested by 2

test_symlink_relativeMethod · 0.64