Displaying 1 result from an estimated 1 matches for "queued_for_delet".
Did you mean:
queued_for_delete
2009 Oct 03
2
Looking for a good resource on open-uri and FileUtils
...#: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
# ignore file-not-found, let everything else pass
end
end
@queued_for_delete = []
end
end
Now I figured that I should be able t...