Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added docs for the method 'resolve' in IO::Path
  • Loading branch information
Jan-Olof Hendig committed May 19, 2016
1 parent 16fd361 commit ae6d2af
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions doc/Type/IO/Path.pod
Expand Up @@ -160,6 +160,18 @@ needed and returns the result as a new C<IO::Path>.
my $io = IO::Path.new( "/bin" );
say $io.child('netstat'); # "/bin/netstat".IO
=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<..>) 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")
=head2 routine dir
sub dir(Cool $path = '.', Mu :$test = none('.', '..'))
Expand Down

0 comments on commit ae6d2af

Please sign in to comment.