You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The expectation would be that such attempt fails with an "invalid ZIP format" error, as the "file" doesn't even have the ZIP signature ('PK') at the start.
The text was updated successfully, but these errors were encountered:
And no, I've been passing a buffer with a downloaded ZIP file to open, for years by now.
It's just that recently the website I was downloading the zip file from, started returning zero-length file. And instead of erring out that there's no archive to read from to begin with, ZIP gem claimed that there is an archive but there are no files in it, which sent me down the wrong path.
Oh yes, it will still work, but it does set the create flag on buffers, so an empty buffer wouldn't be raised as an error. This is changed in the (as yet unreleased) version.
The expectation would be that such attempt fails with an "invalid ZIP format" error, as the "file" doesn't even have the ZIP signature ('PK') at the start.
The text was updated successfully, but these errors were encountered: