Path.isSymlink

bool isSymlink() const @safe

Checks if the path is a symbolic link.

Uses link attributes (like lstat), so a dangling symlink still reports true.

Returns

true if the path is a symbolic link, false otherwise

(including when the path does not exist).