Restore original behaviour in listing ZIP directories

Signed-off-by: Otto Sichert <git@ottosichert.de>
This commit is contained in:
Otto Sichert
2022-06-16 00:13:31 +02:00
committed by blam
parent a6a11e52ef
commit 72e34fe980
@@ -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),