until stream.eof?
          stats[:currinc] = os.write(stream.read(4096))
          stats[:current] += stats[:currinc]
          yield :file_progress, name, stats if block_given?
        end