Skip to content

Accept tar and compressed tar extractions as archive sources - #29

Merged
abrignoni merged 2 commits into
mainfrom
feat/tar-archives
Sep 3, 2026
Merged

abrignoni merged 2 commits into
mainfrom
feat/tar-archives

Conversation

@abrignoni

Copy link
Copy Markdown
Owner

Accepts tar and compressed tar extractions as archive sources, alongside zip. The format is decided by the file's bytes.

  • A tar is enumerated in one streaming pass: header, first bytes and data offset per member
  • A plain tar is read on demand by seeking to that offset; a compressed tar cannot be, so it is always copied out and the case records why
  • Link members are skipped and counted; a device root such as data/ is no longer stripped from rel_path
  • Relink and unstage verify a tar by size and modification time from a fresh pass
  • User-facing text says archive rather than zip

Measured: a 7.2 GB Android tar registered 2,389 media by offset and processed in 22 s with a 22 MB case; a 16.7 GB gzipped iOS image registered and copied out 49,245 media in 2 min 7 s.

🤖 Generated with Claude Code

abrignoni and others added 2 commits September 3, 2026 16:08
archive_format decides zip, tar or compressed tar from the bytes. A tar is
enumerated in one streaming pass that records each member's header, first bytes
and data offset; a plain tar is then read on demand by seeking to that offset,
and a compressed tar, which cannot be seeked, is always copied out and the case
records why. Links are skipped and counted. A single root that is a device
directory (data/, private/) is no longer stripped from rel_path. Relink and
unstage verify a tar by size and modification time from a fresh pass, refreshing
the offsets. User-facing text says archive rather than zip.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@abrignoni
abrignoni merged commit fc80a37 into main Sep 3, 2026
8 checks passed
@abrignoni
abrignoni deleted the feat/tar-archives branch September 3, 2026 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant