Skip to content

Commit 36eee84

Browse files
committed
Index link and symlink as methods/routine
This would close #2121. They are searchable now as routine and methods, with the notation "sub". If this is not address satisfactorily the OP, feel free to reopen.
1 parent b347d5e commit 36eee84

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

doc/Type/IO/Path.pod6

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -480,11 +480,11 @@ for each directory in the path, and any symlinks found are followed.
480480
my $io = "foo/./bar/..".IO.resolve; # now "/" (the parent of "/baz")
481481
482482
If C<:$completely>, which defaults to C<False>, is set to a true value, the
483-
method will L«C<fail>|/routine/fail» with C<X::IO::Resolve>
484-
if it cannot completely resolve the path,
485-
otherwise, it will resolve as much as possible, and will merely perform
486-
L«C<cleanup>|/routine/cleanup» of the rest of the path. The last part of the
487-
path does B<NOT> have to exist to C<:$completely> resolve the path.
483+
method will L«C<fail>|/routine/fail» with C<X::IO::Resolve> if it cannot
484+
completely resolve the path, otherwise, it will resolve as much as possible, and
485+
will merely perform L«C<cleanup>|/routine/cleanup» of the rest of the path. The
486+
last part of the path does B<NOT> have to exist to C<:$completely> resolve the
487+
path.
488488
489489
NOTE: Currently (April 2017) this method doesn't work correctly on all
490490
platforms, e.g. Windows, since it assumes POSIX semantics.
@@ -837,12 +837,10 @@ Defined as:
837837
838838
multi method chdir(IO::Path:D: Str() $path, :$d = True, :$r, :$w, :$x)
839839
840-
B<DEPRECATION NOTICE:> this method will be deprecated in C<6.d> language
841-
and removed in C<6.e>. Do
842-
not use it for new code. Instead, create a new path or use
843-
L«C<add>|/routine/add» method. For altering current working
844-
directory see L«C<&chdir>|/routine/chdir» and L«C<&*chdir>|/routine/&*chdir»
845-
subroutines.
840+
B<DEPRECATION NOTICE:> this method will be deprecated in C<6.d> language and
841+
removed in C<6.e>. Do not use it for new code. Instead, create a new path or use
842+
L«C<add>|/routine/add» method. For altering current working directory see
843+
L«C<&chdir>|/routine/chdir» and L«C<&*chdir>|/routine/&*chdir» subroutines.
846844
847845
Contrary to the name, the C<.chdir> method does not change any directories,
848846
but merely concatenates the given C<$path> to the invocant and returns the
@@ -868,6 +866,7 @@ L<fails|/routine/fail> with L<X::IO::Mkdir> if directory cannot be created.
868866
869867
See also L«C<mode>|/routine/mode» for explanation and
870868
valid values for C<$mode>.
869+
871870
=head2 routine rmdir
872871
873872
Defined as:
@@ -971,6 +970,8 @@ Defined as:
971970
Coerces L«C<.basename>|/routine/basename» to L<Int>. L<Fails|/routine/fail>
972971
with C<X::Str::Numeric> if base name is not numerical.
973972
973+
X<|symlink (routine)>
974+
X<|symlink (method)>
974975
=head2 routine symlink
975976
976977
Defined as:
@@ -987,6 +988,8 @@ To create a hard link, see L«C<link>|/routine/link».
987988
B<Note:> on Windows, creation of symbolic links may require escalated
988989
privileges.
989990
991+
X<|link (routine)>
992+
X<|link (method)>
990993
=head2 routine link
991994
992995
Defined as:

0 commit comments

Comments
 (0)