Skip to main content

open

Function open 

Source
pub fn open(
    primary: &Path,
    paths: &Paths,
    output: Option<PathBuf>,
    writable: bool,
    password: Option<&str>,
) -> Result<State>
Expand description

writable is false for anything that only looks, so it works on read-only media and never takes the lock. For a fresh extraction the output folder may already hold other files, but nothing in the archive may land on top of one. password only matters for encrypted archives; see open_encrypted for the ask-and-retry loop front ends want.