Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
FileUtils#copy_stream
(::_Reader src, ::_Writer dest) -> void
copy_stream(src, dest)
lib/fileutils.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/fileutils.rb, line 1114
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.