mirror of
https://github.com/colanode/colanode.git
synced 2026-02-24 11:59:53 +01:00
Fix zip file size calculation
This commit is contained in:
@@ -88,8 +88,8 @@ export class S3Zip {
|
||||
this.cancel(error);
|
||||
});
|
||||
|
||||
this.archiver.on('progress', (progress) => {
|
||||
this.zipFileSize = progress.fs.processedBytes;
|
||||
this.passThrough.on('data', (chunk) => {
|
||||
this.zipFileSize += chunk.length;
|
||||
});
|
||||
|
||||
this.passThrough.on('error', (error) => {
|
||||
|
||||
Reference in New Issue
Block a user