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
Can confirm - nested folder structure seems to break Node. I fear, like many (un)zip packages on npm - this one only supports unzipping all files inside a .zip.
Hi Folks,
I am facing this issue of illegal operation when I am trying to unzip a zip file which has multiple directories in it using decompress module.
Is it something related to the permissions of the particular zip file?
Sample Code:
var unzipFiles = async function (dirPath, dcmfolder) {
const files = fs.readdirSync(dirPath);
await Promise.all(
files.map(async (file) => {
const fullFilePath = path.join(dirPath, "/", file);
if (file.endsWith(".zip")) {
console.log("Inside unzip if condition");
await decompress(fullFilePath, dcmfolder);
}
})
);
};
The text was updated successfully, but these errors were encountered: