tsolomko / SWCompression

A Swift framework for working with compression, archives and containers.
MIT License
233 stars 39 forks source link

Can Gzip unarchive return Member? #33

Closed HouHangLei closed 2 years ago

HouHangLei commented 2 years ago

After unzipping I need to get the file name (mainly the file suffix) so it can be stored in the sandbox directory.

tsolomko commented 2 years ago

Yes, you can use GzipArchive.multiUnarchive(archive:) instead. It works even on a single GZip archive, in which case it returns an array with only a single Member.