Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
FileUtils.copy_stream
(::_Reader src, ::_Writer dest) -> void
copy_stream(src, dest)
lib/fileutils.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/fileutils.rb, line 1089
def copy_stream(src, dest)
IO.copy_stream(src, dest)
end
Copies IO stream src to IO stream dest via IO.copy_stream.
Related: methods for copying.