symlink
ErrorsCollection

symlink

Synthesised documentation from type/IO/Path

From type/IO/Path

See Original text in context

method symlink(IO::Path:D $target: IO() $linkBool :$absolute = True --> Bool:D)
sub    symlink(      IO() $targetIO() $linkBool :$absolute = True --> Bool:D)

Create a new symbolic link $link to existing $target. Returns True on success; fail 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.