[
  {
    "Id": "688305",
    "ThreadId": "276958",
    "Html": "\r\n<div>\r\n<p>Hi there,</p>\r\n<p>First of all, really awesome library!&nbsp;</p>\r\n<p>Had a small problem I was trying to tackle and was wondering what the best approach is.</p>\r\n<p>I was attempting to use the library to extract files in a folder. Now this folder might already contain the files being extracted. In such cases I would like to provide an alternative FileName and extract the file with the new name. Now I know about using&nbsp;ExtractProgress\r\n and I tried to do this in two ways:</p>\r\n<p>1. Handle &nbsp;e.EventType == ZipProgressEventType.Extracting_ExtractEntryWouldOverwrite by setting the current entry's filename to a new unique name. This still seems to be throwing the exception without extracting the file.</p>\r\n<p>2. Handle e.EventType == ZipProgressEventType.Extracting_BeforeExtractEntry by setting the current entry's filename to a new unique name. This causes an exception after the file has been extracted because the collection has been changed.</p>\r\n<p>The only 2 alternatives I can see is to either check the entire zip file before extraction and update it accordingly, or by making use of a temporary folder and then copying the files.</p>\r\n<p>Is there anything else I might attempt which I might be missing?</p>\r\n<p>Thanks and regards,</p>\r\n<p>A</p>\r\n</div>\r\n",
    "PostedDate": "2011-10-24T02:30:26.817-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]