Method: File.copy

Defined in:
lib/ftools.rb

.copy(from, to, verbose = false) ⇒ Object Also known as: cp

Copies a file from to to using #syscopy. If to is a directory, copies from to to/from. If verbose is true, from -> to is printed.



87
88
89
90
# File 'lib/ftools.rb', line 87

def copy(from, to, verbose = false)
  $stderr.print from, " -> ", catname(from, to), "\n" if verbose
  syscopy from, to
end