Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add zip/tarball decompression #84

Merged
merged 1 commit into from
Mar 5, 2024
Merged

feat: add zip/tarball decompression #84

merged 1 commit into from
Mar 5, 2024

Conversation

mistydemeo
Copy link
Contributor

Although axoasset's had support for creating archives for awhile, it hasn't supported extracting them yet. This starts that off with a few options: methods that extract the entire tarball/zip to a directory, and methods that extract a single file and return the raw bytes.

Copy link
Contributor

@Gankra Gankra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we now support compression and decompression, it might be easy to write tests that we roundtrip data by say, compressing and uncompressing a copy of /src/

(see also: https://github.com/axodotdev/axoasset/blob/main/examples/compress.rs)

@mistydemeo
Copy link
Contributor Author

Makes sense; I'll tackle that in a later PR.

@mistydemeo mistydemeo merged commit d555b43 into main Mar 5, 2024
14 checks passed
@mistydemeo mistydemeo deleted the decompress branch March 5, 2024 23:05
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.

2 participants