In IO::Path§
See primary documentation in context for routine symlink
method symlink(IO::Path : IO() , Bool : = True --> Bool)sub symlink( IO() , IO() , Bool : = True --> Bool)
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.
symlink
creates a symbolic link using an absolute path by default. To create a relative symlink set the absolute
parameter to False
e.g. :!absolute
. This flag was introduced in Rakudo version 2020.11.
To create a hard link, see link
.
Note: on Windows, creation of symbolic links may require escalated privileges.