fileUnzipFile

Extracts all files from a ZIP archive to a directory. Takes a ZIP file path and destination directory path. Returns 1 on success, 0 on failure (NULL parameters, ZIP open error, or extraction error).

File IO

Parameters & Returns

Parameters

zipFile String
destDir String

Returns

Int

Quick Summary

Extracts all files from a ZIP archive to a directory. Takes a ZIP file path and destination directory path. Returns 1 on success, 0 on failure (NULL parameters, ZIP open error, or extraction error).

Technical Exegesis...

Opens a ZIP archive and extracts all files and directories to the destination directory. Automatically creates parent directories as needed, preserving the ZIP's internal directory structure. Returns 1 on success, 0 on failure (NULL parameters, ZIP open error, or extraction error).

Uses miniz library (mz_zip_reader). Iterates through all files in the archive using mz_zip_reader_get_num_files. Detects directories (entries ending with '/') and creates them. Extracts files using mz_zip_reader_extract_to_file.

Example

Example.bam
; No example implemented yet