End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
FileUtils#copy_stream
copy_stream(src, dest)
lib/fileutils.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/fileutils.rb, line 524
def copy_stream(src, dest)
IO.copy_stream(src, dest)
end
Copies stream src to dest. src must respond to read(n) and dest must respond to write(str).