Skip to main content

admit

Function admit 

Source
pub fn admit(
    archive: &[u8],
    prefix: &str,
) -> Result<BTreeMap<String, Vec<u8>>, AppError>
Expand description

Read an archive into the payload files it is allowed to carry.

ยงErrors

AppError::Refused on any bound, on any entry that is not a regular file under the package prefix, and on any duplicate logical path.