Created
May 19, 2016 18:17
Star
You must be signed in to star a gist
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 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