method

copy_file

copy_file(src, dest, preserve = false, dereference = true)
public

Copies file contents of src to dest. Both of src and dest must be a path name.