Skip to content

Unable to archive 1M files #398

@bouri-mounir

Description

@bouri-mounir

I want to use archiver to compress more then 1 million files and stream the result to http response.
When using zip-stream : archive not finalized correctly and download is blocked (0 o/s ...)
Seem to work fine when using tar-stream.

Testing code :

archive.pipe(res);
for (var i=0;i<1000000;i++)
            {
                let jsonFileContent = {test:"test"};
                archive.append(JSON.stringify(jsonFileContent, null, 2), {
                    name: path.join('test', "json-test-" + i + ".json")
                })
            }
archive.finalize();

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions