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    copy(IO() $from, IO() $to, :$createonly --> Bool:D)

    Copies a file. Returns True on success; fails with
    X::IO::Copy if :$createonly is True and the $to path
    already exists or if the operation failed for some
    other reason, such as when $to and $from are the same
    file.

Huh?

1) what exactly is `:$createonly`?

2) is there some other command for recurse and create?

       cp -Rip source destination


Many thanks,
-T

Reply via email to