Skip to content

Commit

Permalink
add missing file remove routine "unlink"
Browse files Browse the repository at this point in the history
  • Loading branch information
tbrowder committed Sep 19, 2019
1 parent 96ffda7 commit 3fb1211
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions doc/Language/io.pod6
Expand Up @@ -110,11 +110,11 @@ To explicitly write binary data to a file, open it with the C<:bin> option.
The input/output operations then will take place using the C<Buf> type instead
of the C<Str> type.
=head1 Copying and renaming files
=head1 Copying, renaming, and removing files
Routines C<copy>, C<rename>, and C<move> are available to avoid low-level system
commands. See details at L<copy|/routine/copy>, L<rename|/routine/rename>, and
L<move|/routine/move>. Some examples:
Routines C<copy>, C<rename>, C<move>, and C<unlink> are available to avoid low-level system
commands. See details at L<copy|/routine/copy>, L<rename|/routine/rename>,
L<move|/routine/move>, and C<unlink|/routine/unlink>. Some examples:
=begin code
my $filea = 'foo';
Expand All @@ -131,6 +131,10 @@ rename $filea, 'new-foo', :createonly; # fails if 'new-foo' exists
# use move when a system-level rename may not work
move $fileb, '/disk2/foo'; # overwrites '/disk2/foo' if it exists
move $fileb, '/disk2/foo', :createonly; # fails if '/disk2/foo' exists
unlink $filea; # removes $filea
$fileb.IO.unlink; # removes $fileb
=end code
=head1 Checking files and directories
Expand Down

0 comments on commit 3fb1211

Please sign in to comment.