[
  {
    "Id": "635474",
    "ThreadId": "263426",
    "Html": "\r\n<p>Hello,</p>\r\n<p>I have a problem when i add my folder to my zip.</p>\r\n<p>I would like to skip the adding folder if it already added in my ZipFile.</p>\r\n<p>I'm coding in C&#43;&#43;/CLI :</p>\r\n<div style=\"color:black; background-color:white\">\r\n<pre>sr_File = <span style=\"color:blue\">gcnew</span> StreamReader (s_File);\r\ns_Line = sr_File -&gt; ReadLine ();\r\n<span style=\"color:blue\">while</span> (s_Line != <span style=\"color:blue\">nullptr</span>)\r\n{\r\n\t<span style=\"color:blue\">char</span>* stringPointer = (<span style=\"color:blue\">char</span>*) Marshal::StringToHGlobalAnsi (s_Line).ToPointer ();\r\n\tstring std_Name = stringPointer;\r\n\ti_Index = std_Name.find (<span style=\"color:#a31515\">&quot;Jean&quot;</span>);\r\n\r\n\t<span style=\"color:blue\">if</span> (i_Index != -1)\r\n\t{\r\n\t\ts_Name = <span style=\"color:blue\">gcnew</span> String (std_Name.c_str());\r\n\t\t\t\t\t\t\t\r\n\t\t<span style=\"color:blue\">if</span> (<span style=\"color:green\">//If File already Exist in Zip)</span>\r\n\t\t{\r\n\t\t\tzf_Zip -&gt; AddDirectory (<span style=\"color:#a31515\">&quot;D:\\\\&quot; &#43; s_Name, &quot;</span>D:\\\\&quot; &#43; s_Name);\r\n\t\t}\r\n\t}\r\n\ts_Line = sr_File -&gt; ReadLine ();\r\n}\r\n</pre>\r\n</div>\r\n<p>&nbsp;</p>\r\n",
    "PostedDate": "2011-06-30T08:53:30.547-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "635904",
    "ThreadId": "263426",
    "Html": "<p>I try ContainsEntry but it's doesn't work :/</p>",
    "PostedDate": "2011-07-01T02:47:59.223-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "636975",
    "ThreadId": "263426",
    "Html": "<p>i've got the same problem but when unziping in c#, that is my code:</p>\n<p>when the compiler enters into the using statement it got the exception:</p>\n<p>\"An iten with the same key has already been added\", does anybody know what shoul be wrong\"</p>\n<p>when i change destinationFolder to a path in my network it works:</p>\n<p>&nbsp;</p>\n<div style=\"color: black; background-color: white;\">\n<pre> <span style=\"color: blue;\">using</span> (ZipFile zip = ZipFile.Read(arquivo))\n            {\n\n                <span style=\"color: blue;\">foreach</span> (ZipEntry e <span style=\"color: blue;\">in</span> zip)\n                {\n                    e.Extract(destinationFolder, ExtractExistingFileAction.OverwriteSilently);\n                }\n             \n            }\n</pre>\n</div>",
    "PostedDate": "2011-07-04T04:59:43.543-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "637013",
    "ThreadId": "263426",
    "Html": "<p>Nervermind, already resolved, actually there were duplicated files inside my zip.</p>",
    "PostedDate": "2011-07-04T06:19:51.82-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]