Documentation for method symlink

Documentation for method symlink, assembled from the following types:

class IO::Path

From IO::Path

method symlink(IO::Path:D: Str $name --> Bool)
sub    symlink(Str $targetStr $name --> Bool)

Create a new symbolic link named as $target (or the name of the invocant in the method form) to the existing file named $name.

Both forms will return True on success or fail with X::IO::Symlink if the symbolic link could not be created.