ID EN
OS

is_symlink

Python 3.11

Return True if this entry is a symbolic link (even if broken); return False if the entry points to a directory or any kind of file, or if it doesn’t exist anymore.

Syntax

PYTHON
is_symlink()

See Also

os.path.islink() OSError PermissionError FileNotFoundError