bentonam / fakeit

Generates JSON documents based on models defined in YAML and adds them to a Couchbase Bucket
MIT License
86 stars 21 forks source link

Bad CRC when unzipping files #133

Open bentonam opened 7 years ago

bentonam commented 7 years ago

Zip archives are unzipping but when unzipping from the command line a bad CRC is being reported.

Create the archive

fakeit directory --count 10 test/fixtures/output/users.zip test/fixtures/models/ecommerce/models/users.yaml

Unzip the archive

unzip -a -d test/fixtures/output/extract test/fixtures/output/users.zip
tjbenton commented 7 years ago

Note that none of the files are actually corrupt and all 10 files exist with the correct data. From the little research I did it seems to be a problem withunzip it's self as it's not reliable. When unzipping the file the normal way (not through the cli) there're no errors.

tjbenton commented 7 years ago

Might be able to switch to https://www.npmjs.com/package/jszip