My object is to compress a directory containing multiple files using Minizip to .zip archive. I tried reading the documentation provided with Minizip along with the example, but I couldn't comprehend it.
Do I go about it by creating a zip file using zipOpen, and then just add files to the zip file using zipOpenNewFileInZip ? Something like this:
zipFile Compressed = zipOpen("Name", APPEND_STATUS_CREATEAFTER);
int rt = zipOpenNewFileInZip(Compressed," What should I put here?" , &zfi, NULL, 0, NULL, 0, "", 0, Z_DEFAULT_COMPRESSION);
Please help me understand what functions I need to do my objective.
Thank you.