mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-06 21:26:07 +00:00
Delegates/event handlers for feedback when creating zip files. #14
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @patoncrispy on GitHub (May 8, 2014).
I'm zipping lots of large files (10GB+) and need to be able to get some information back on how it's doing. Is it possible to get some delegates in place to be able to find out how quickly my file is zipping (bytes read, bytes zipped, current size, files added etc)? It would be really useful for providing feedback to clients waiting for their documents!
@adamhathcock commented on GitHub (Nov 4, 2014):
There are events on Archive and Reader I believe.
@sepehr1014 commented on GitHub (May 31, 2015):
@adamhathcock Hi, I may be wrong but I don't think there are any events to monitor the progress of creating archives. What am I missing?
@adamhathcock commented on GitHub (May 31, 2015):
You're right. There's nothing for creating. Just extraction.
@sepehr1014 commented on GitHub (May 31, 2015):
Any plans to add it? We're working on a project which requires compressing/decompressing files. Since in most cases, there are gigabytes of files to be compressed, progress report is essential.
@Strachu commented on GitHub (May 31, 2015):
Hi,
It is possible to add progress reporting while creating an archive without modification of the library. I am not sure how do you create the archive but I have successfully managed to add the reporting while creating the archive by decorating a source file stream with progress reporting capability.
Some excerpts from my application which may help you in implementing this functionality:
Archive creation:
ProgressReportingStream: