Re: Working with ZIP files

2017-08-06 Thread Araq
Can we get these fixes/improvements as a PR please?

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-08-04 Thread enthus1ast
There is a binding: [https://github.com/h3rald/nim-miniz](https://github.com/h3rald/nim-miniz) This is also part of the "min" language.

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

Re: Working with ZIP files

2017-07-29 Thread LeFF
try out miniz: [https://github.com/richgel999/miniz](https://github.com/richgel999/miniz) \- it is single file C-library, which can read/write zip files... I'm not sure if there is a ready to use Nim bindings, but it should be easy to make one yourself...

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