diff --git a/packages/backend-common/src/reading/tree/ZipArchiveResponse.ts b/packages/backend-common/src/reading/tree/ZipArchiveResponse.ts index ffc2c8d9a7..418f32b155 100644 --- a/packages/backend-common/src/reading/tree/ZipArchiveResponse.ts +++ b/packages/backend-common/src/reading/tree/ZipArchiveResponse.ts @@ -90,6 +90,11 @@ export class ZipArchiveResponse implements ReadTreeResponse { const parseStream = this.stream .pipe(unzipper.Parse()) .on('entry', (entry: Entry) => { + if (entry.type === 'Directory') { + entry.resume(); + return; + } + if (this.shouldBeIncluded(entry)) { files.push({ path: this.getInnerPath(entry.path),