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'm using unzipper to unzip a file using the following instructions:
let extract = unzipper.Extract({ path: self.taskPath });
fs.createReadStream(self.uploadedFile)
.pipe(extract);
extract.on('close', () => {
console.log('closed zip stream.');
resolve();
});
extract.on('error', (e) => {
console.log('error in zip stream: ' + e);
reject(e);
});
The zip file contains a folder, which contains other files. While attempting to unzip the folder, I am retreiving "EEXIST: file already exists" as a file with the name of the folder has been generated by unzipper.
my folder is detected as a file, because the vars.uncompressedSize is 0xffffffff. Could this be due to the zip using the "Zip64 Format"?
I would also check for 0xffffffff but it seems to me that the file contains two entrys for the folder: The first one being interpreted as a file and the second one being interpreted as a folder, which then causes the EEXIST.
What would your recommendation be on fixing this? I'm willing to help.
The text was updated successfully, but these errors were encountered:
I'm using unzipper to unzip a file using the following instructions:
The zip file contains a folder, which contains other files. While attempting to unzip the folder, I am retreiving "EEXIST: file already exists" as a file with the name of the folder has been generated by unzipper.
In
node-unzipper/lib/parse.js
Line 135 in 7f83183
my folder is detected as a file, because the
vars.uncompressedSize
is 0xffffffff. Could this be due to the zip using the "Zip64 Format"?I would also check for 0xffffffff but it seems to me that the file contains two entrys for the folder: The first one being interpreted as a file and the second one being interpreted as a folder, which then causes the EEXIST.
What would your recommendation be on fixing this? I'm willing to help.
The text was updated successfully, but these errors were encountered: