copy_file(src, dest, preserve = false, dereference = true)
private
Copies file contents of src to dest. Both of src
and dest must be a path name.
Show source
def copy_file(src, dest, preserve = false, dereference = true)
ent = Entry_.new(src, nil, dereference)
ent.copy_file dest
ent.copy_metadata dest if preserve
end