fileUnzipFilePassword

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

File IO

Parameters & Returns

Parameters

zipFile String
destDir String
password String

Returns

Int

Quick Summary

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

Technical Exegesis...

Opens a password-protected 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, wrong password, ZIP open error, or extraction error).

Uses miniz library (mz_zip_reader_extract_file_to_heap). Iterates through all files in the archive. Detects directories (entries ending with '/') and creates them.

Example

Example.bam
; No example implemented yet