guzba / zippy

Pure Nim implementation of deflate, zlib, gzip and zip.
MIT License
246 stars 29 forks source link

Many empty invalid data #34

Closed gavr123456789 closed 2 years ago

gavr123456789 commented 2 years ago

I tried to compress the folder in which there were files with the vin code, everything worked well. Then I was wondering how to go inside folders inside archives and I created the following hierarchy:
image
code:

createTarball("../utils/testFolder", "examples.tar.gz")
var tarbol = Tarball()
tarbol.open("examples.tar.gz")
echo tarbol.contents

And I got this:
image The wall of invalid data, but there are some correct things, For example I see key: "testFolder/sas" examples.tar.gz

OS: Arch, nim: 1.4.8

gavr123456789 commented 2 years ago

Hmm, cant reproduce anymore, all new archives are good

guzba commented 2 years ago

Closing for now but please do let me know if you see unexpected invalid data again. Certainly don't want Zippy ever returning junk data like that after all.