Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
emmercm authored Jun 22, 2024
1 parent b28f248 commit 12ce729
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/types/files/archives/zip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ export default class Zip extends Archive {
const archive = await unzipper.Open.file(this.getFilePath());

return async.mapLimit(
archive.files.filter((entryFile) => entryFile.type === 'File'),
archive.files
.filter((entryFile) => entryFile.type === 'File')
// https://github.com/ZJONSSON/node-unzipper/issues/324
.filter((entryFile) => typeof entryFile.offsetToLocalFileHeader === 'number'),
Constants.ARCHIVE_ENTRY_SCANNER_THREADS_PER_ARCHIVE,
async (entryFile, callback: AsyncResultCallback<ArchiveEntry<this>, Error>) => {
let checksums: ChecksumProps = {};
Expand Down

0 comments on commit 12ce729

Please sign in to comment.