ID EN
OS

readlink

Python 3.11

Return a string representing the path to which the symbolic link points. The result may be either an absolute or relative pathname; if it is relative, it may be converted to an absolute pathname using os.path.join(os.path.dirname(path), result).

Syntax

PYTHON
os.readlink(path, *, dir_fd=None)

See Also

PathLike paths relative to directory descriptors realpath() Availability path-like object path-like object