pub struct ZipLocalFileHeader<'a> { /* private fields */ }Expand description
Local file header information from a ZIP archive entry.
This struct provides access to data stored in the local file header of a ZIP entry, which may differ from the information in the central directory. The local header contains the filename and extra fields as they appear at the start of each entry’s data within the ZIP file.
Most ZIP tools use the central directory as authoritative, but access to local header data is useful for validation, security analysis, and forensic purposes.
Implementations§
Source§impl<'a> ZipLocalFileHeader<'a>
impl<'a> ZipLocalFileHeader<'a>
Sourcepub fn file_path(&self) -> ZipFilePath<RawPath<'a>>
pub fn file_path(&self) -> ZipFilePath<RawPath<'a>>
Returns the file path from the local file header.
This may differ from the central directory file path.
Sourcepub fn extra_fields(&self) -> ExtraFields<'a> ⓘ
pub fn extra_fields(&self) -> ExtraFields<'a> ⓘ
Returns an iterator over the extra fields from the local file header.
Extra fields in the local header may differ from those in the central directory. The local header may contain additional or different metadata compared to the central directory entry.