The lstat function retrieves information about the specified file (file_path). If the file is a symbolic link, information about the link itself is returned (in contrast to stat, which returns information about the file that the symbolic link points to). See also symlink, unlink, readlink, realpath, and lchown.