See Original text in context
method copy(IO::Path: IO() , : --> Bool)sub copy(IO() , IO() , : --> Bool)
Copies a file. Returns True
on success; fail
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.
See Original text in context
method copy(Parameter: --> Bool)
Returns True
for trait parameters.
my Signature = :(Str , Bool : is copy);say .params[0].copy; # OUTPUT: «False»say .params[1].copy; # OUTPUT: «True»