Skip to content

Reader

Destructive iterator over the entries in an open TAR archive.

Advancing the reader drains unread data from the current entry and invalidates its Entry handle. Iteration yields entries in archive order.

Example

read "archive.tar" do |archive|
  for entry = archive
    echo $entry.path

Inherits from: Iter[Entry]

Fields

compression

Detected compression as :NONE:, :GZIP:, or :ZSTD:.

Methods

(next)()

Yields the next Entry, ending iteration at the end of the archive.