# Function sk_extract::extractors::extract_tgz

source ·

    pub fn extract_tgz(
        input_path: &Path,
        output_directory: &Path
    ) -> Result<(), Error>

Expand description

Extracts files from a TGZ (tar.gz) compressed archive.

## Arguments

- `input_path` - The path to the TGZ compressed 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_tgz(Path::new("src/test_data/test.tgz"), Path::new("output_directory"));
    assert!(result.is_ok());