# extract_rar in sk_extract::extractors - Rust
Extracts files from a RAR archive.

# Function sk_extract::extractors::extract_rar

source ·

    pub fn extract_rar(
        input_path: &Path,
        output_directory: &Path
    ) -> Result<(), Box<dyn Error>>

Expand description

Extracts files from a RAR archive.

## Arguments

- `input_path` - The path to the RAR file to extract.
- `output_directory` - The destination directory for extracted files.

## Returns

Returns `Ok(())` on success, or an `Error` if extraction fails.

## Examples

    use std::path::Path;
    let result = extract_rar(Path::new("src/test_data/test.rar"), Path::new("output_directory"));
    assert!(result.is_ok());