archive icon indicating copy to clipboard operation
archive copied to clipboard

Get zip file entries without extraction

Open meteorza opened this issue 5 years ago • 3 comments
trafficstars

Using this package, is it possible to list all the zip file entries (filenames) without actually extracting the zip file?

meteorza avatar Oct 05 '20 11:10 meteorza

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.

knaeckeKami avatar Oct 27 '20 11:10 knaeckeKami

It looks like ZipDecoder().decodeBuffer will give you an archive that has file information on it.

bradcypert avatar Sep 01 '22 01:09 bradcypert

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.

brendan-duncan avatar Sep 05 '22 18:09 brendan-duncan