Skip to main content

resolve_input

Function resolve_input 

Source
pub(crate) fn resolve_input(
    base: &Path,
    file: &str,
) -> Result<PathBuf, (StatusCode, String)>
Expand description

The archive to read: file under base (relative, or absolute inside it), an existing regular .abf file, reached by no .. and no link that leaves base. The same folder Agents export writes to, so a file an agent or the person put there is the one it imports.