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
I try to pass the buffer directly to zipper.Open.buffer but that's where I get the error when processing the stream after.
constbuffer=(awaitaxios.get('https://nces.ed.gov/ccd/Data/zip/ccd_sch_052_1718_l_1a_083118.zip',{responseType: 'arraybuffer'},)).data;constdirectory=awaitunzipper.Open.buffer(buffer);constnestedZip=directory.files.find(file=>file.path.endsWith('CSV.zip'),);constinnerZip=awaitunzipper.Open.buffer(awaitnestedZip.buffer());conststream=innerZip.files[0].stream();// Do something with inner zip stream ...
Is this not a supported way to extract the nested structure currently? I have also tried parsing the parent, writing the nested zip to disk, and then attempting an unzip that way, but I run into the same issue. Any ideas?
The text was updated successfully, but these errors were encountered:
What if you manually extract the outer ZIP from the command line or something and try to use unzipper to read the inner ZIP?
The fact that the ZIP file comes from another ZIP file shouldn't make any difference, as you never told the unzipper that it originally got that buffer from another unzipper.
Maybe it's just something about the inner ZIP file that is causing problems.
Based on some of the tickets I've seen, extracting a nested zip is possible, but I'm running into this error when attempting:
Here is the parent zip: https://nces.ed.gov/ccd/Data/zip/ccd_sch_052_1718_l_1a_083118.zip. It contains two nested zip structures.
I try to pass the buffer directly to
zipper.Open.buffer
but that's where I get the error when processing the stream after.Is this not a supported way to extract the nested structure currently? I have also tried parsing the parent, writing the nested zip to disk, and then attempting an unzip that way, but I run into the same issue. Any ideas?
The text was updated successfully, but these errors were encountered: