You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
Very nice library, great alternative to ZipFile!
From the examples posted, I see that you have to read the entire zip archive contents before decompressing it.
I was wondering if it would be possible to implement a way to just read the archive file list, and read one file at a time using a stream-like interface. That way, if I have a rather big zip archive with many files, I can load only the ones that I want, without wasting time and memory for the others.
Thanks a lot!
The text was updated successfully, but these errors were encountered:
Thank you for the feedback. Yes this is possible using Mmap.jl if you are reading a file.
using Mmap: mmap
using ZipArchives
archive =ZipReader(mmap(open("Downloads/ZipArchives.jl-main.zip")))
zip_openentry(archive, "ZipArchives.jl-main/README.md") do io
io isa IO
end
Hi,
Very nice library, great alternative to ZipFile!
From the examples posted, I see that you have to read the entire zip archive contents before decompressing it.
I was wondering if it would be possible to implement a way to just read the archive file list, and read one file at a time using a stream-like interface. That way, if I have a rather big zip archive with many files, I can load only the ones that I want, without wasting time and memory for the others.
Thanks a lot!
The text was updated successfully, but these errors were encountered: