Re: Working with ZIP files

2017-08-06 Thread Nox
Thanks, it seems to work fine, though I've already modified libzip to suit my needs It has one advantage over miniz that you can replace existing files in ZIP without unpacking everything. One downside of libzip is that precompiled binary that I have is linked to zlib1.dll and I guess there

Re: Working with ZIP files

2017-07-30 Thread Nox
Hmm... Looks like appending files with fmAppend or fmReadWriteExisting modes does not work, not sure why.

Re: Working with ZIP files

2017-07-29 Thread Nox
Thanks, I will check it out. In meanwhile I've figured out how to use zipfiles. Just had to add: {.passl: "-lz".} I've downloaded precompiled zlib binaries because zlib.dll supplied with Nim is 32 bit for some reason. Also, right away I've found some problem in libzip.nim, it produced IO

Working with ZIP files

2017-07-29 Thread Nox
Hello, I want to use Nim on Windows to work with IDML files which contain bunch of zipped XML files packed in specific order (e.g. mimetype file comes as first and must be uncompressed). I've tried “Wrapper for the zip library” but can't get it to work. It looks like _libzip_ library is kinda