Skip to main content

should_extract

Function should_extract 

Source
pub fn should_extract(mod_dir: &Path, version: &str) -> Result<bool>
Expand description

Determines whether a mod should be (re)extracted based on version comparison.

Returns Ok(true) if mod_dir has no manifest.json, if its manifest has a different version_number than version, or if its manifest cannot be parsed. Returns Ok(false) only when an existing manifest already records the same version.