search for: stream_to

Displaying 1 result from an estimated 1 matches for "stream_to".

Did you mean: stream_r
2009 Oct 03
2
Looking for a good resource on open-uri and FileUtils
...= default_style @queued_for_write[style] || (File.new(path(style)) if exists?(style)) end alias_method :to_io, :to_file def flush_writes #:nodoc: @queued_for_write.each do |style, file| FileUtils.mkdir_p(File.dirname(path(style))) result = file.stream_to(path(style)) file.close result.close end @queued_for_write = {} end def flush_deletes #:nodoc: @queued_for_delete.each do |path| begin FileUtils.rm(path) if File.exist?(path) rescue Errno::ENOENT => e...