How can I get the target of a symlink in Perl 6?
There is no equivalent in Perl 6 for that to my knowledge.
The closest thing to a solution, is to zef install P5readlink
(https://modules.raku.org/dist/P5readlink) and use readlink
like you would in Perl 5.
Method resolve works:
my $target = "../tmp/file".IO;
my $symlink-path = "files".IO;
$target.symlink: $symlink-path;
say $symlink-path.resolve;
say $symlink-path.resolve(:completely) ~~ $target.resolve(:completely);