On Fri, May 1, 2020 at 11:40 PM ToddAndMargo via perl6-users
mailto:perl6-us...@perl.org>> wrote:
Hi All,
https://docs.perl6.org/routine/copy
(IO::Path) routine copy
Defined as:
method copy(IO::Path:D: IO() $to, :$createonly --> Bool:D)
sub
$createonly fails to do a copy when the destination file already exists.
An example of shell commands to emulate this is:
# echo a > test1
# echo b > test2
# cp -n test2 test1
# cat test1
a
As for recursion...you probably need to write a recursive function
somewhere (didn't look that hard).
On F
Hi All,
https://docs.perl6.org/routine/copy
(IO::Path) routine copy
Defined as:
method copy(IO::Path:D: IO() $to, :$createonly --> Bool:D)
subcopy(IO() $from, IO() $to, :$createonly --> Bool:D)
Copies a file. Returns True on success; fails with
X::IO::Copy if :$cre