mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-12 21:22:26 +00:00
Abort uncompress multiple rar files #329
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 @jsassner on GitHub (Sep 30, 2018).
Say you have a very big rar files (many multiple files) that you want to abort in the middle of an uncompress, how would you do that? I couldn't find anything in the code base that supports that.
The FilePartExtractionBegin event could have a property in FilePartExtractionBeginEventArgs where you could mark it as need to abort.
@adamhathcock commented on GitHub (Oct 1, 2018):
So you're using a RarReader and doing
MoveNextor something and want to stop mid-decompression of an Entry or just stop after extracting an entry?@jsassner commented on GitHub (Oct 1, 2018):
I fixed it, thanks for the pointer in the correct direction.
This was the code i used before, and basically tried to abort in the FilePartExtractionBegin event.
Using your info, i ended up with:
This "issue" can now be closed.