Test files › Folders and paths › reserved-and-awkward-dirs.zip
Sample ZIP file (reserved and awkward dirs)
Directories named after Windows reserved devices, plus one ending in a dot and one ending in a space.
↓ Download reserved-and-awkward-dirs.zip| Filename | reserved-and-awkward-dirs.zip |
| Format | ZIP |
| Size | 1.3 KB (1,282 bytes) |
| MIME type | application/zip |
| SHA-256 | 7fab653ffe32d53a5ec3921dcc7c589e6e0a942e8f2de92cf3c7549483effb65 |
What this file catchesReserved names used as DIRECTORIES rather than files, which is the case most sanitisers forget, and the two do not even fail the same way. On Windows, creating a directory called CON fails outright with error 267. Creating one called NUL reports SUCCESS and creates nothing at all, so an extractor that only checks the return value believes it worked. Trailing dots and spaces are a third case: the call succeeds and Windows hands back the trimmed name, so "trailing-dot." and "trailing-dot" become one directory.
Download & verify
curl -fsSL -o "reserved-and-awkward-dirs.zip" "https://files.hexaqa.com/folder/reserved-and-awkward-dirs.zip"
curl -fsSL "https://files.hexaqa.com/folder/reserved-and-awkward-dirs.zip" | sha256sum
# expect: 7fab653ffe32d53a5ec3921dcc7c589e6e0a942e8f2de92cf3c7549483effb65