Skip to main content

unpack

Function unpack 

Source
pub fn unpack(
    data: &[u8],
    dir: &Path,
    limits: Limits,
    policy: Policy,
) -> Result<Unpacked, MhtmlError>
Expand description

Unpacks the archive in data into dir, which must exist and should be empty: the root page as index.html, every other part under a name falcon makes, HTML and CSS rewritten to point at each other’s files.