Zstream.unzip

You're seeing just the function unzip, go back to Zstream module for more information.

Unzips file stream.

Returns a new stream which emits the following tuples for each zip entry.

{:entry, Zstream.Entry.t/0} - Indicates a new file entry.

{:data, iodata/0 | :eof} - one or more data tuples will be emitted for each entry. :eof indicates end of data tuples for current entry.

NOTES

Unzip doesn't support all valid zip files. Zip file format allows the writer to write the file size info after the file data, which allows the writer to zip streams with unknown size. But this prevents the reader from unzipping the file in a streaming fashion, because to find the file size one has to go to the end of the stream. Ironically, if you use Zstream to zip a file, the same file can't be unzipped using Zstream.

  • Doesn't support file which uses data descriptor header.
  • Doesn't support encrypted file.