Test files › Folders and paths › explicit-dir-entries.zip
Sample ZIP file (explicit dir entries)
An archive that declares its directories explicitly, as zero-length entries whose names end in a slash, alongside the files inside them.
↓ Download explicit-dir-entries.zip| Filename | explicit-dir-entries.zip |
| Format | ZIP |
| Size | 868 bytes (868 bytes) |
| MIME type | application/zip |
| SHA-256 | 6a760c7019a8c82678b7ce9c0f162968c0bcecf21023047ff336e452e6b5e3a0 |
What this file catchesExtractors that build directories only from file paths and ignore directory records, and any code that counts "files in the archive" without filtering out the directory entries. The entry count here is 7 but only 3 are files, so a naive count is wrong by more than double.
Download & verify
curl -fsSL -o "explicit-dir-entries.zip" "https://files.hexaqa.com/folder/explicit-dir-entries.zip"
curl -fsSL "https://files.hexaqa.com/folder/explicit-dir-entries.zip" | sha256sum
# expect: 6a760c7019a8c82678b7ce9c0f162968c0bcecf21023047ff336e452e6b5e3a0