    # File lib/facets/more/minitar.rb, line 325
        def add_file_simple(name, opts = {}) # :yields BoundedStream:
          raise Archive::Tar::Minitar::BlockRequired unless block_given?
          raise Archive::Tar::ClosedStream if @closed

          name, prefix = split_name(name)

          header = { :name => name, :mode => opts[:mode], :mtime => opts[:mtime],
            :size => opts[:size], :gid => opts[:gid], :uid => opts[:uid],
            :prefix => prefix }
          header = Archive::Tar::PosixHeader.new(header).to_s
          @io.write(header)

          os = BoundedStream.new(@io, opts[:size])
          yield os
            # FIXME: what if an exception is raised in the block?

          min_padding = opts[:size] - os.written
          @io.write("\0" * min_padding)
          remainder = (512 - (opts[:size] % 512)) % 512
          @io.write("\0" * remainder)
        end