
27 Jan
2010
27 Jan
'10
10:38 a.m.
Andrej van der Zee wrote:
I am looking for a way to uncompress a zip-file (which contains multiple files/dirs) and browse through the contents. Does boost provide support for the first part? I looked at iostreams with a zlib uncompressor, but as far as I can see it assumes a single zipped file.
Hi Andrej, I don't believe Boost has anything that can do this. I have had success using "MiniZip" by Gilles Vollant. It's just a handful of C files. A simple C++ wrapper is easy to write. Beware that there are many variants of the zip format; this is OK if you have control over the files that are being decompressed, but it's a pain if the end user can submit anything and expect it to work. Regards, Phil.