mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-09 08:32:04 +02:00
The local file header signature of a ZIP entry is normally 0x04034B50 and stored in little-endian byte order. Therefore, if the archive starts with an entry we can identify a ZIP file by checking if the first two bytes are 0x504B (PK). Also checks for the .zip file extension, which is is also used by file if no byte signature was detected.
10 KiB
10 KiB