-
|
This may be too esoteric to solve, but I'm hoping you might be able to help me figure this out. ZIP bundles I'm creating are failing to parse properly with this zip library: I wish I could link to the main repo for "qzip" but I can't find it. Its very possibly not maintained outside that aforementioned repo. Unfortunately GoldenCheetah is one of my primary targets for zip import, so it's not a good look for me to have a compatibility issue with them. The error triggered is "File does not exist" -> https://github.com/GoldenCheetah/GoldenCheetah/blob/master/src/Gui/RideImportWizard.cpp#L492 Also of interest is that GC (GoldenCheetah) does list the file(s) but still fails.. I've tried In all cases if I take the zip file and Here are the actual files and read outs from 'zipdetails -v'... zipdetails-linux-zip.txt |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
Strange, I'll take a look at the source code and see if I can find what the issue is but I've never used GoldenCheetah before so I don't know how likely I'll be able to find anything. More than likely
This is actually intentional. Consumer OSes (Windows, Mac, Android, etc.) don't care at all whether or not you include the directories as zero-byte entries in the ZIP. As far as I can tell the empty files aren't required or even mentioned by the ZIP spec. I only do it for You can also avoid wasting space in your ZIP if you use full filepaths instead of nested objects: zipSync({
'no/dirs/created/a.txt': strToU8('no empty entries created for each directory'),
dirs: {
'created.txt': strToU8('here there will be an empty "dirs/" entry created')
}
}) |
Beta Was this translation helpful? Give feedback.

Strange, I'll take a look at the source code and see if I can find what the issue is but I've never used GoldenCheetah before so I don't know how likely I'll be able to find anything. More than likely
qzip, which as far as I can tell is copy-pasted from an internal part of Qt's source code, isn't spec compliant. If it's something obvious I'll send a fix when I have time.This is actually intentional. Consumer OSes (Windows, Mac, Android, etc.) don't care at all whether or not you include the directories as zero-byte entries in the ZIP. As far as I can tell the empt…