ID EN
OS Path

islink

Python 3.11

Return True if path refers to an existing directory entry that is a symbolic link. Always False if symbolic links are not supported by the Python runtime.

Syntax

PYTHON
os.path.islink(path)

See Also

existing path-like object