routine copy
| 1 | class Parameter |
| 1.1 | (Parameter) method copy |
| 2 | class IO::Path |
| 2.1 | (IO::Path) routine copy |
Documentation for routine copy assembled from the following types:
class Parameter
From Parameter
(Parameter) method copy
Defined as:
method copy(Parameter: --> Bool)
Returns True for is copy parameters.
my Signature = :(Str , Bool : is copy);say .params[0].copy; # OUTPUT: «False»say .params[1].copy; # OUTPUT: «True»
class IO::Path
From IO::Path
(IO::Path) routine copy
Defined as:
method copy(IO::Path: IO() , : --> Bool)sub copy(IO() , IO() , : --> Bool)
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.