fix(core): update

This commit is contained in:
2024-06-06 20:59:04 +02:00
parent b9645dfb99
commit 725546e409
2 changed files with 6 additions and 1 deletions

View File

@@ -122,6 +122,11 @@ export class SmartArchive {
if (analyzedResultChunk.fileType?.mime === 'application/x-tar') {
const tarStream = analyzedResultChunk.decompressionStream as plugins.tarStream.Extract;
tarStream.on('entry', async (header, stream, next) => {
if (header.type === 'directory') {
console.log(`tar stream directory: ${header.name} ... skipping!`);
next();
return;
}
console.log(`tar stream file: ${header.name}`);
const streamfile = plugins.smartfile.StreamFile.fromStream(stream, header.name);
streamFileIntake.push(streamfile);