End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
FileUtils.copy_stream
copy_stream(src, dest)
lib/fileutils.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/fileutils.rb, line 514
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).