Skip to content

Commit 12172fc

Browse files
committed
Document copy()
1 parent 7678c0f commit 12172fc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/Type/IO/Path.pod

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,16 @@ operation could not be completed.
265265
Please use L<move|/routine/move> if a file could not be moved by renaming
266266
(usually because the destination is on a different physical storage device).
267267
268+
=head2 routine copy
269+
270+
method copy(IO::Path:D: $to, :$createonly)
271+
sub copy($from, $to, :$createonly);
272+
273+
Copies a file, as indicated by C<$from> or the invocant, to the
274+
destination specified. If C<:createonly> is set to C<True>, copy fails if a file
275+
already exists in the destination. Returns C<True> upon success, or an
276+
appropriate C<Failure> if the operation could not be completed.
277+
268278
=head2 routine move
269279
270280
method move(IO::Path:D: $to, :$createonly)

0 commit comments

Comments
 (0)