Hi Poco Experts,
How can I enumerate a zip for all its files and directories? Do I use ZipArchive for this? I did see in the zip user manual the following code to look up one file:
std::ifstream inp("test.zip", std::ios::binary);
poco_assert (inp);
ZipArchive arch(inp);
ZipArchive::FileHeaders::const_iterator it = arch.findHeader("data/hello.txt");
poco_assert (it != arch.headerEnd());
ZipInputStream zipin (inp, it->second);
std::ostringstream out(std::ios::binary);
Poco::StreamCopier::copyStream(zipin, out);
However, I need to know how to do the traversal of all directories and files.
Thank you!
Mike





