archive
archive copied to clipboard
Get zip file entries without extraction
trafficstars
Using this package, is it possible to list all the zip file entries (filenames) without actually extracting the zip file?
I also could use this. I think it's not possible at the moment, but I think with a few tweaks ZipDirectory could also work with an InputFileStream, not just an in-memory InputStream.
It looks like ZipDecoder().decodeBuffer will give you an archive that has file information on it.
Decoding the zip will to an Archive will not decompress the file entries until their data is requested with getData. So, essentially, it's getting the entries without extracting the files.