Documentation for routine copy

Documentation for routine copy, assembled from the following types:

class IO::Path

From IO::Path

(IO::Path) routine copy

method copy(IO::Path:D: IO() $to:$createonly --> Bool:D)
sub    copy(IO() $fromIO() $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.

class Parameter

From Parameter

(Parameter) method copy

Defined as:

method copy(Parameter:D: --> Bool:D)

Returns True for is copy parameters.