Skip to main content

Module central_dir

Module central_dir 

Source
Expand description

ZIP Central Directory parser.

Reads the End of Central Directory (EOCD) record — always at the tail of the file — to locate the Central Directory, then walks each CD header to produce a Vec<EntryLocation>.

Handles standard ZIP and ZIP64 (large ZIPs with > 65535 entries or entries > 4 GB). Multi-disk archives are rejected.

Structs§

EntryLocation
Location of one JAR entry, derived from the Central Directory.

Functions§

read_central_directory
Parse the ZIP Central Directory and return one EntryLocation per file entry.
read_central_directory_from
Parse the ZIP Central Directory from a Read + Seek source without loading the whole file into memory.