/onepack

Dead simple zipping / unzipping C++ Lib

Primary LanguageC++MIT LicenseMIT

11Zip

Dead simple zipping / unzipping C++ Lib

I didn't really wanted to make my own zipping / unzipping library but as I found nothing else, I made my own.

That's why I called this lib 11Zip, 11 is the atomic number of the sodium as it describes pretty well my salty feeling when searching for a zipping / unzipping C++ Lib.

By the same time it's also a reference to 7zip.

The lib is based on zlib & minizip : https://github.com/madler/zlib

It does also include some wrapper code from here : www.vilipetek.com/2013/11/22/zippingunzipping-files-in-c/

For now you have access to two functions which are really simple :

elz::extractZip(std::string zipName, std::string target = ".");

Which just unzip the content of a zip in "target" folder (which is current folder by default).

and the other function is :

elz::zipFolder(std::string folderName, std::string zipTarget = "");

Which just zip the folder "folderName" to "zipTarget" (Which is "folderName".zip by default).