Compare commits
2 Commits
b9645dfb99
...
f257c0c5a4
Author | SHA1 | Date | |
---|---|---|---|
f257c0c5a4 | |||
725546e409 |
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@push.rocks/smartarchive",
|
||||
"version": "4.0.23",
|
||||
"version": "4.0.24",
|
||||
"description": "A library for working with archive files, providing utilities for compressing and decompressing data.",
|
||||
"main": "dist_ts/index.js",
|
||||
"typings": "dist_ts/index.d.ts",
|
||||
|
|
|
@ -3,6 +3,6 @@
|
|||
*/
|
||||
export const commitinfo = {
|
||||
name: '@push.rocks/smartarchive',
|
||||
version: '4.0.23',
|
||||
version: '4.0.24',
|
||||
description: 'A library for working with archive files, providing utilities for compressing and decompressing data.'
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user