EasyZip component (request) lazarus / 7-LCL ---------------------------------------------------------------------- Rave · 2011-07-22 22:35 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: Code: [Select]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. ---------------------------------------------------------------------- BigChimp · 2011-07-23 05:58 Sometimes searching the forum can be enlightening  Does this: http://lazarus.freepascal.org/index.php/topic,12983.msg70195.html#msg7 0195 help? (You can forget about the Delphi part, but it shows there already is support for zip/unzip) ---------------------------------------------------------------------- Rave · 2011-07-23 06:01 Yeah, I thought about that, but function names are so confusing. I need only basic functionality as described in OP as I want just to make xml-based ODF-like document format and instead of keeping whole directory, keep just one file..