extract_mrpack

Function extract_mrpack 

Source
pub fn extract_mrpack(
    mrpack_path: &Path,
    output_directory: &Path,
) -> ZipResult<()>
Expand description

Extract all the contents of a Modrinth modpack, except for the main manifest file.

ยงErrors

An Err is returned when one of these things go wrong:

  • Failed to open file
  • Failed to start zip archive
  • Failed to get file by index
  • Failed to create dirs
  • Failed to copy file