[
  {
    "Id": "77420",
    "ThreadId": "23131",
    "Html": "\r\nHi! i'm a new user of this great library, now I've found when you create a physical zip file (Test.zip), and you re-use this file to add more contents, some explanation(please note this as basic just to show...):<br /><br />Private Sub AddCollFiles(DirStruc as Collection)<br />Dim ZipUtil As New ZipFile(ZipFileName)<br />For iPos = 0 To DirStruc.Files.Count - 1<br />  ZipUtil.AddItem(DirStruc.Files.Item(iPos).Path, DirStruc.Files.Item(iPos).ParentDir)<br />Next<br />ZipUtil.Save()<br />end Sub<br /><br />Sub Main()<br />  Dim a as Collection=GetContents(A)<br />  Dim b as Collection=GetContents(A)<br /><br />  AddCollFiles(a)<br />  AddCollFiles(b)<br />End Sub<br /><br />You get: <br />System.IO.IOException: Unable to move the replacement file to the file to be replaced. The file to be replaced has retained its original name.<br />   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)<br />   at System.IO.__Error.WinIOError()<br />   at System.IO.File.Replace(String sourceFileName, String destinationFileName, String destinationBackupFileName, Boolean ignoreMetadataErrors)<br />   at System.IO.File.Replace(String sourceFileName, String destinationFileName, String destinationBackupFileName)<br />   at Ionic.Utils.Zip.ZipFile.Save()<br /><br />The solution is to set the <b>ZipUtil.TempFileFolder property</b>, cheers.<br />",
    "PostedDate": "2008-02-29T09:22:47.32-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]