use Read;
use Path;
use ZipManager;
use crateModType;
use crateResult;
/// Detect the mod/plugin type from a JAR file on disk.
///
/// # Errors
///
/// Returns an error if the file cannot be read or is not a valid ZIP archive.
/// Detect the mod/plugin type from a ZIP archive read via a `Read` impl.
///
/// # Errors
///
/// Returns an error if the data cannot be read or is not a valid ZIP archive.