Abort a zipping process. #598
Unanswered
mdeangelo-CT
asked this question in
Q&A
Replies: 1 comment 1 reply
-
You can use the var fastZip = new FastZip(new FastZipEvents() {
CompletedFile = (_, args) => {
args.ContinueRunning = !aborted;
}
});
fastZip.CreateZip(zipFileName, sourceFolderPath, true, ""); Note that this is single threaded, so if you want to listen for some kind of external event you probably have to do threading and sync/lock |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Expected behavior
Create a method to abort zipping in FastZip. As seen in issue #373, we see that it is unsafe to abort a running thread. Could we implement a method that could safely abort the zipping process?
Version of SharpZipLib
1.3.1
Obtained from (only keep the relevant lines)
Beta Was this translation helpful? Give feedback.
All reactions