createSymlink


Description:

public static bool createSymlink (Path target, Path link)

Creates a symbolic link that points to the target path.

Example:

    var target = new Path ("/tmp/original.txt");
var link = new Path ("/tmp/link.txt");
bool ok = Files.createSymlink (target, link);

Parameters:

target

the path the symlink will point to.

link

the path of the symlink to create.

Returns:

true if the symlink was created, false otherwise.