method

copy

ruby latest stable - Class: File

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1_8_7_330) is shown here.

copy(from, to, verbose = false)
public

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.

1Note

Deprecated in 1.9.x!

allen · Mar 2, 20103 thanks

Use FileUtils::copy instead. It is also in 1.8.x, FileUtils, so call that one instead.