Created
May 19, 2016 18:17
-
-
Save dogbert17/8b4fa796509f18759db69cb42cc61f62 to your computer and use it in GitHub Desktop.
Documentation for method resolve in IO::Path taken verbatim from https://raw.githubusercontent.com/perl6/specs/master/S32-setting-library/IO.pod
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=head2 method resolve | |
method resolve(IO::Path:D: --> IO::Path) | |
Returns a new C<IO::Path> object with all symbolic links and references to the | |
parent directory (C<..>) are physically resolved. This means that the | |
filesystem is examined for each directory in the path, and any symlinks found | |
are followed. | |
# bar is a symlink pointing to "/baz" | |
my $io = "foo/./bar/..".IO.resolve; # now "/" (the parent of "/baz") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the phrasing is a little awkward, this is slightly better IMO
Returns a new CIO::Path object with all symbolic links and references to the
parent directory (C<..>) resolved. This means that the