readSymlink


Description:

public static Path? readSymlink (Path path)

Reads the target path of a symbolic link.

Example:

    var link = new Path ("/tmp/link.txt");
var target = Files.readSymlink (link);
if (target != null) {
print ("Points to: %s\n", target.toString ());
}

Parameters:

path

path to the symbolic link.

Returns:

a Path for the symlink target, or null on error.