oleg-cherednik / zip4jvm

zip files support for JDK application: split, zip64, encryption, streaming
https://github.com/oleg-cherednik/zip4jvm
Apache License 2.0
26 stars 3 forks source link

ZipInputStream stop finding next entry if entry is a folder with Data Descriptor #52

Open oleg-cherednik opened 3 years ago

oleg-cherednik commented 3 years ago

ZipInputStream stop finding next entry if entry is a folder with Data Descriptor. This zip could be extracted by unzip in Linux.

Seems this is caused by ZipInputStream.readUntilEndOfEntry

    if (localFileHeader.isDirectory()
        || (localFileHeader.getCompressedSize() == 0 && !localFileHeader.isDataDescriptorExists())) {
      return;
    }