Skip to content

Commit 81a5806

Browse files
committed
[io grant] Amend IO::Path.resolve: :completely
To include the bit that the last path fragment does not have to exist. Rakudo correction: rakudo/rakudo@51e462925a Tests: Raku/roast@a716962791
1 parent c5524ef commit 81a5806

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/Type/IO/Path.pod6

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,10 +343,11 @@ for each directory in the path, and any symlinks found are followed.
343343
# bar is a symlink pointing to "/baz"
344344
my $io = "foo/./bar/..".IO.resolve; # now "/" (the parent of "/baz")
345345
346-
If C<$completely>, which defaults to C<False>, is set to a true value, the
346+
If C<:$completely>, which defaults to C<False>, is set to a true value, the
347347
method will L«C<fail>|/routine/fail» if it cannot completely resolve the path,
348348
otherwise, it will resolve as much as possible, and will merely perform
349-
L«C<cleanup>|/routine/cleanup» of the rest of the path.
349+
L«C<cleanup>|/routine/cleanup» of the rest of the path. The last part of the
350+
path does B<NOT> have to exist to C<:$completely> resolve the path.
350351
351352
NOTE: Currently (April 2017) this method doesn't work correctly on all
352353
platforms, e.g. Windows, since it assumes POSIX semantics.

0 commit comments

Comments
 (0)