txt: ## copy.md
  copy
  
  Combined from primary sources listed below.
  
  # [In Parameter](#___top "go to top of document")[§](#(Parameter)_method_copy "direct link")
  
  See primary documentation
  [in context](/type/Parameter#method_copy)
  for **method copy**.
  
  ```raku
  method copy(Parameter:D: --> Bool:D)
  ```
  
  Returns `True` for [`is copy`](/language/signatures#Parameter_traits_and_modifiers) parameters.
  
  ```raku
  my Signature $sig = :(Str $x, Bool :$is-named is copy);
  say $sig.params[0].copy;                           # OUTPUT: «False␤»
  say $sig.params[1].copy;                           # OUTPUT: «True␤»
  ```
  
  # [In IO::Path](#___top "go to top of document")[§](#(IO::Path)_routine_copy "direct link")
  
  See primary documentation
  [in context](/type/IO/Path#routine_copy)
  for **routine copy**.
  
  ```raku
  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](/routine/fail) with [`X::IO::Copy`](/type/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.
  