Like stat(), except if the path points to a symlink, the symlink's status information is returned, rather than its target's.
pathlib/Path.lstat
Path.lstat