[
  {
    "Id": "95070",
    "ThreadId": "28509",
    "Html": "<p>Someone added a Work Item saying:</p>\r\n<blockquote dir=ltr style=\"margin-right:0px\">\r\n<p dir=ltr style=\"margin-right:0px\"><span style=\"font-family:times new roman\">Something came up when I tried to add files that were already into another zip archive: I've got an exception saying that the file already exists in the zip archive, but I can't find a way to test this before trying to add the file to the existing zip archive.<br>\r\n<br>\r\nBut when I try to add new files to an existing zip file, it returns me an exception and deletes the original zip file without creating a new one. Is there some way to append new files to the existing zip file one?</span> </p>\r\n</blockquote>\r\n<p>The way to test for the existence of a file in the archive is this: </p>\r\n<blockquote dir=ltr style=\"margin-right:0px\"><span style=\"font-family:courier new\">\r\n<p>      using (ZipFile zip = new ZipFile(ZipFileName))<br>\r\n      {<br>\r\n        ZipEntry e = zip[Candidate];<br>\r\n        if (e==null)<br>\r\n          Console.WriteLine(&quot;The file, '{0}', does not exist in the zip archive '{1}'&quot;,<br>\r\n                            Candidate,<br>\r\n                            ZipFileName);<br>\r\n        else<br>\r\n          Console.WriteLine(&quot;The file '{0}' already exists in the zip archive '{1}'&quot;,<br>\r\n                            Candidate,<br>\r\n                            ZipFileName);<br>\r\n      }</p>\r\n<p> </p>\r\n</span></blockquote>\r\n<p>Currently there is no way to Update a file in the zip - to update the content of a file already present in the zip. That sounds like a good feature request.</p>\r\n",
    "PostedDate": "2008-05-27T16:12:59.563-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "95531",
    "ThreadId": "28509",
    "Html": "This feature - Updating a file in an archive - is now available in the v1.5 Preview release. <br>\r\nSee the UpdateFile() method, or the <span style=\"text-decoration:line-through\">AddOrUpdateFile()</span>&nbsp;<span style=\"color:#ff0000\">UpdateItem()</span> method on the ZipFile class.<br>\r\n<br>\r\n",
    "PostedDate": "2008-05-29T10:03:00.153-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]