ingest_archive_zip_extractor

Extract ZIP and split archives with recursive scanning and JSON reports.

541|171|Updated May 3, 2018
One-click install
npx skills add https://github.com/cas-bigdatalab/piflow --skill ingest-archive-zip-extractor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ingest_archive_zip_extractor
Source: https://github.com/cas-bigdatalab/piflow/tree/main/workspace/skills/ingest_archive_zip_extractor
Command: npx skills add https://github.com/cas-bigdatalab/piflow --skill ingest-archive-zip-extractor

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the process of extracting ZIP files and ZIP split archives, providing a streamlined approach to unzipping files while offering detailed reports.

Core Features & Use Cases

  • ZIP and ZIP Split Extraction: Supports the extraction of standard ZIP files and ZIP split archives (e.g., .z01, .z02).
  • Recursive Directory Extraction: Recursively scans for .zip files and handles nested zip archives.
  • Detailed Reporting: Outputs a JSON report outlining the extraction process and any errors encountered.

Quick Start

Extract all ZIP files from the directory 'data' to 'output' and generate a report in 'report.json' using the command:

python scripts/run_ingest_archive_zip_extractor.py --input_dir data --output_dir output --report report.json

Frequently Asked Questions about ingest_archive_zip_extractor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract ZIP split archives like .z01 and .z02 files in Python?

You can extract ZIP split archives using Python's zipfile library by automating the unzipping process. This Skill handles standard .zip files and split archive extensions like .z01 and .z02, outputting extracted files to a specified directory.

What is the best way to batch extract ZIP files from nested directories?

Batch extracting ZIP files from nested directories requires a recursive directory scan. This Skill automates batch file unpacking by recursively searching for .zip files within your input directory and extracting them to a target output folder.

Can I generate a JSON report after unzipping multiple files to track extraction errors?

Yes, generating a JSON report after unzipping files helps track the extraction process and any errors encountered. This Skill outputs a detailed JSON report outlining the batch file unpacking results when you specify a report file path.

Does Python's zipfile library support recursive extraction for nested zip archives?

Python's zipfile library handles standard ZIP extraction, and this Skill extends that capability to support recursive extraction of nested zip archives. It automates the unzipping process to extract ZIP files found within other extracted ZIP archives.

Do I need any external dependencies to unpack ZIP split archives with this script?

No external dependencies are required to unpack ZIP split archives with this script. It relies solely on Python's built-in zipfile library to automate the unzipping process and handle both standard and split archive formats.

Why are my ZIP split archives not extracting correctly during batch file unpacking?

When ZIP split archives are not extracting correctly, checking the JSON report helps identify errors encountered during the process. This Skill automates archive management and logs detailed extraction errors to help troubleshoot failed unzipping attempts.