node-stream-zip
node-stream-zip copied to clipboard
Getting entries for a specific folder within the zip file?
I am attempting to add zip support for react-explorer and would have the need to get the entries for a specific directory within a zip file, something like: zip.entries('path/into/zip/file'), but not recursive.
Is it possible? I did not see any API for that. I know I could do that with existing entries function, but this would require quite some work and I am not sure it would be fast enough if the archive has lots of files/folders.
After looking at the ZIP format specs & the node-stream source code I guess there's no way to access directly a file this way so I'll have to do my own code anyway.