[
  {
    "Id": "484015",
    "ThreadId": "224618",
    "Html": "<p>Hi，</p>\r\n<p>I found a bug, when compressing(actually archiving) a .rar or .zip file into segments, particularly if the file is large enough to generate more than one segment, DotNetZip will throw a &quot;FileNotFoundException&quot;, saying that the XXX.z01 doesn't exists.&nbsp; From the code, it seems the method WantReadAgain(file: ZipEntry.Writer.cs) returns true if compressed size is larger than original size, and that will direct to method &quot;TruncateBackward&quot; (file: ZipSegmentedStream.cs) which generates the exception.</p>\r\n<p>the exception is thrown from the following code:</p>\r\n<p>\r\n<div style=\"color:black;background-color:white\">\r\n<pre><span style=\"color:green\">// get a new temp file, try 3 times:</span>\r\n            <span style=\"color:blue\">for</span> (<span style=\"color:blue\">int</span> i = 0; i &lt; 3; i++)\r\n            {\r\n                <span style=\"color:blue\">try</span>\r\n                {\r\n                    _currentTempName = SharedUtilities.InternalGetTempFileName();\r\n                    File.Move(CurrentName, _currentTempName);  <span style=\"color:green\">// move the .z0x file back to a temp name</span>\r\n                }\r\n                <span style=\"color:blue\">catch</span>(IOException)\r\n                {\r\n                    <span style=\"color:blue\">if</span> (i == 2) <span style=\"color:blue\">throw</span>;\r\n                }\r\n            }\r\n\r\n</pre>\r\n</div>\r\n</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2010-08-24T03:02:58.13-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "484899",
    "ThreadId": "224618",
    "Html": "This discussion has been copied to a work item. Click <a href=\"http://dotnetzip.codeplex.com/workitem/11818\">here</a> to go to the work item and continue the discussion.",
    "PostedDate": "2010-08-25T16:40:28.97-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]