'get list of files in encrypted zip file with javascript in browser
If I want to unzip a zip package with a password and get a list of files in the zip package, what should I do, here is the code I try to solve the above problem.
async function getPasswdZipFiles(file, password) {
const reader = new zip.ZipReader(new zip.BlobReader(file) ,{password})
console.log('[ reader ] >', reader)
const entries= await reader.getEntries()
await reader.close()
}
The value of entries is the archive, not the file list. How should I get the file? I would be very grateful if I could get an answer.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
