Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dogbert17/8b4fa796509f18759db69cb42cc61f62 to your computer and use it in GitHub Desktop.
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
=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")
@coke
Copy link

coke commented May 19, 2016

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

@dogbert17
Copy link
Author

Fixed, thanks for the feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment