# File lib/em/streamer.rb, line 34 34: def initialize connection, filename, args 35: @connection = connection 36: @http_chunks = args[:http_chunks] 37: 38: if File.exist?(filename) 39: @size = File.size?(filename) 40: if @size <= MappingThreshold 41: stream_without_mapping filename 42: else 43: stream_with_mapping filename 44: end 45: else 46: fail "file not found" 47: end 48: end