Skip to main content

unpack_file

Function unpack_file 

Source
pub fn unpack_file(
    path: &Path,
    dir: &Path,
    limits: Limits,
    policy: Policy,
) -> Result<Unpacked, MhtmlError>
Expand description

Unpacks the archive file at path into dir, refusing a file larger than twice the size limit (base64 makes parts a third larger).