Expand description
Parsers and types for the various elements that make up a ZIP file.
Contain winnow parsers for most elements that make up a ZIP file, like the end-of-central-directory record, local file headers, and central directory headers.
All parsers here are based off of the PKWARE appnote.txt, which you can find in the source repository.
Structs§
- Archive
- An Archive contains general information about a zip files, along with a list of entries.
- Central
Directory File Header - 4.3.12 Central directory structure: File header
- Data
Descriptor Record - 4.3.9 Data descriptor:
- EndOf
Central Directory - Coalesces zip and zip64 “end of central directory” record info
- EndOf
Central Directory64 Locator - 4.3.15 Zip64 end of central directory locator
- EndOf
Central Directory64 Record - 4.3.14 Zip64 end of central directory record
- EndOf
Central Directory Record - 4.3.16 End of central directory record:
- Entry
- Describes a zip archive entry (a file, a directory, a symlink)
- Extra
Field Settings - Useful because zip64 extended information extra field has fixed order but optional fields. From the appnote:
- Extra
NewUnix Field - Info-ZIP New Unix Extra Field:
- Extra
Ntfs Field - 4.5.5 -NTFS Extra Field (0x000a):
- Extra
Timestamp Field - Extended timestamp extra field
- Extra
Unix Field - 4.5.7 -UNIX Extra Field (0x000d):
- Extra
Zip64 Field - 4.5.3 -Zip64 Extended Information Extra Field (0x0001)
- Local
File Header - 4.3.7 Local file header
- Located
- A zip structure and its location in the input file
- Lzma
Properties - 5.8.5 LZMA Properties header
- Mode
- Mode represents a file’s mode and permission bits. The bits have the same definition on all systems, but not all bits apply to all systems.
- Msdos
Mode - MsdosMode represents the file mode and permission bits for MS-DOS
- Msdos
Timestamp - A timestamp in MS-DOS format
- Ntfs
Attr1 - NTFS attribute 1, which contains modified/accessed/created timestamps
- Ntfs
Timestamp - A timestamp in NTFS format.
- Unix
Mode - UnixMode represents the file mode and permission bits for Unix systems.
- Version
- A zip version (either created by, or required when reading an archive).
Enums§
- Entry
Kind - The entry’s file type: a directory, a file, or a symbolic link.
- Extra
Field - Information stored in the central directory header
extra
field - Host
System - System on which an archive was created, as encoded into a version u16.
- Method
- Compression method used for a file entry.
- Method
Specific - Method-specific properties following the local file header
- Ntfs
Attr - NTFS attribute for zip entries (mostly timestamps)