fileZipDir

Compresses an entire directory into a ZIP archive. Takes a source directory path and ZIP file path. Returns 1 on success, 0 on failure (NULL parameters or ZIP creation error).

File IO

Parameters & Returns

Parameters

sourceDir String
zipFile String

Returns

Int

Quick Summary

Compresses an entire directory into a ZIP archive. Takes a source directory path and ZIP file path. Returns 1 on success, 0 on failure (NULL parameters or ZIP creation error).

Technical Exegesis...

Creates a ZIP archive containing all files and subdirectories from the source directory. Recursively traverses the directory tree and adds all contents to the archive using MZ_DEFAULT_COMPRESSION. Returns 1 on success, 0 on failure (NULL parameters or ZIP creation error).

Uses miniz library (mz_zip_writer) and AddDirToZip helper function for recursion. Preserves directory structure within the ZIP. All files and subdirectories are compressed. Useful for archiving project folders or creating backups.

Example

Example.bam
; No example implemented yet