Availability:built-in
read_link(+File,
-Link, -Target)If File points to a symbolic link, unify Link with
the value of the link and Target to the file the link is
pointing to.
Target points to a file, directory or non-existing entry in
the file system, but never to a link. Fails if File is not a
link. Fails always on systems that do not support symbolic links.