I've been trawling the web for ages trying to find some zip extraction code which
- I could understand and
- did not have excessive restrictions.
Then I stumbled across Gilles Vollant's excellent work on providing a multi-file API to the ZLib code base written by Jean-loup Gailly and Mark Adler.
That was yesterday. A day later I had wrapped Gilles' code in a simplified C++ wrapper with extended features.
I don't want to gush too much, but having spent the last six months looking for code such as his, I was very impressed by how simply I could understand it and work with it.
The features I've added include:
- Navigating/extracting the embedded files/folders by index
- Navigating/extracting the embedded files by file extension
- Extracting the embedded files whilst ignoring the path info stored with each file. i.e., flattening the file structure
The purpose of this release is mostly to assist people like me who were looking for some code to start with. If I come up with any useful extensions then I will update the code, but feel free (as I know you will) to criticize the code in anyway you like.
p.s. The sample app which comes with the code will show how to use it.
p.s to p.s. Although the sample app is MFC, the wrapper class is pure Win32.