extract

Function extract 

Source
pub fn extract(
    path: PathBuf,
    inner_path: String,
    output: Option<PathBuf>,
) -> Result<()>
Expand description

Extract a file from the 3MF archive by path.

Copies a specific file from inside the ZIP archive to the local filesystem or stdout.

§Arguments

  • path - Path to the 3MF file
  • inner_path - Path to the file inside the archive
  • output - Output path (None = stdout)

§Errors

Returns an error if the archive cannot be opened or the entry doesn’t exist.