Skip to content

Commit d2313a5

Browse files
committed
Document unlink()
1 parent 5f737bd commit d2313a5

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

lib/Type/IO.pod

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,13 @@ and if that (silently) fails, do it the hard way.
376376
377377
B<NOTE>: This function has not yet been implemented in Rakudo.
378378
379+
=head2 sub unlink
380+
381+
sub unlink(*@filenames, :$SPEC = $*SPEC, :$CWD = $*CWD);
382+
383+
Delete all specified ordinary files, links, or symbolic links. Returns the
384+
names of the files that were successfully deleted.
385+
379386
=head2 sub rmdir
380387
381388
sub rmdir($dir as IO --> Bool) is export

lib/Type/IO/Path.pod

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,13 @@ Like L</routine/rename()>, but with L</.absolute> as the first parameter.
172172
173173
Like L</routine/move()>, but with L</.absolute> as the first parameter.
174174
175+
=head2 method unlink
176+
177+
method unlink(IO::Path:D:);
178+
179+
Like L</routine/unlink()>, but with L</.absolute> as the first parameter.
180+
Returns C<True> on success or an appropriate C<Failure>.
181+
175182
=head1 Related roles and classes
176183
177184
See also the related role L<IO> and the related classes L<IO::FileTestable>

0 commit comments

Comments
 (0)