mw99 / DataCompression

Swift libcompression wrapper as an extension for the Data type (GZIP, ZLIB, LZFSE, LZMA, LZ4, deflate, RFC-1950, RFC-1951, RFC-1952)
Apache License 2.0
287 stars 57 forks source link

Unzip a .gz folder #33

Open maximilianlemberg-awl opened 1 year ago

maximilianlemberg-awl commented 1 year ago

Can you show a code example of unzipping a .gz folder and storing the folder on an ios device in order to access the files stored in the archive?

That would be highly appreciated.

mw99 commented 1 year ago

Hi! With ".gz folderyou mean.tar.gz? This library can only do the decompression, not untar operation. You will need another tar file library to do that. ([DataCompression](https://github.com/mw99/DataCompression) can turn.tar.gzinto.tar`, but can't extract the files.) If you search the web for "ios untar library" I'm sure you will find what you need.