I have hard time using zlib, so I'd like to request easy to use component for handling zip (and maybe lzma) archives. I'd like to see following functions:
openArchive(filename:PChar,compressionLevel:byte;)
Opens archive with path in filename and set it's compression level to compressionLevel. Invoked by constructor.
addFile(path,pathinZip:PChar; createDirs:Boolean)
adds file in path as pathinzip, if some of directories in pathinZip are missing and createDirs=true they're created inside archive. Example:
EasyZip1.addFile('c:\letter to mom.doc','letters/letter to mom.doc');
addDirectory(path:PChar;);
adds directory in path to archive
extract(path:PChar;createDirs:Boolean)
extracts archive to specifed location. If createDirs=true and some of directories are missing in patch, they're created along the way.
closearchive();
Closes archive and writes it to disk. Invoked by destructor.