method
copy_file
copy_file(dest)
public
Hide source
# File lib/fileutils.rb, line 1384 def copy_file(dest) File.open(path()) do |s| File.open(dest, 'wb', s.stat.mode) do |f| IO.copy_stream(s, f) end end end