File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -265,6 +265,16 @@ operation could not be completed.
265
265
Please use L < move|/routine/move > if a file could not be moved by renaming
266
266
(usually because the destination is on a different physical storage device).
267
267
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
+
268
278
= head2 routine move
269
279
270
280
method move(IO::Path:D: $to, :$createonly)
You can’t perform that action at this time.
0 commit comments