Documentation for method symlink

Documentation for method symlink, assembled from the following types:

class IO::Path

From IO::Path

Defined as:

method symlink(IO::Path:D $target: IO() $link --> Bool:D)
sub    symlink(      IO() $targetIO() $link --> Bool:D)

Create a new symbolic link $link to existing $target. Returns True on success; fails with X::IO::Symlink if the symbolic link could not be created. If $target does not exist, creates a dangling symbolic link. To create a hard link, see link.

Note: on Windows, creation of symbolic links may require escalated privileges.