what would be the best way to read log files that are inside of nested zip files without extracting the files first? I was hoping that this would work using
let archive = zip::read::ZipArchive, but I didn't have any luck so far. While I can get the names of contained files using
archive.file_names, I don't see a way to use these names as handles to open the underlying zip as a new
The structure looks similar to this (can be deeper than 2 levels):
Each zip can contain a large number of files, so I want to avoid extracting the first level to disk as that will be very costly. I'd also like to delete some of the .txt files from within the zips to reduce size on disc - that should be straightforward once I have the handles that I need to traverse the zipped files I think. I'm still new to Rust, so I might be missing an obvious solution here?