-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Imagine the situation where we have no clue of which files we should get (so no possibility archive.get('filename') ). it would be natural trying to use the Iterator archive.files(). but here the thing:
` const archive = await ZipArchive.from_blob(blob)
let currentFile = archive.files().next()
while (!currentFile.done) {
const [fileName, zipEntry] = currentFile.value
console.log(fileName, zipEntry)
currentFile = archive.files().next()
}
`
the iterator does not move ahead.
for (const iterator of archive.files()) { .... }
Type 'Iterator<[string, ZipEntry], any, undefined>' must have a 'Symbol.iterator' method that returns an iterator.
if I am missing other ways to deal with that, just let me know.
vojtatom
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working