[
  {
    "Id": "60206",
    "ThreadId": "18421",
    "Html": "<h2>\r\nProblem\r\n</h2>I need to be able to create a zip file of FolderA  that contains files and folders.  The top level entry in the zip file needs to be FolderA but instead it is the root folder of FolderA.<br /><br /><h2>\r\nExample\r\n</h2>For example, to zip a folder with a path c:\\temp\\build<br /><br />When opening the zip the root is <b>temp</b> instead of what I wanted: <b>build</b><br /><br />Is there any functionality within the library that can allow me do this?<br /><br />Kind regards,<br /><br /><i>JW</i><br />",
    "PostedDate": "2007-11-28T04:03:45.08-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "61236",
    "ThreadId": "18421",
    "Html": "\r\nYes, you can do what you want.  Did you try this:<br /><br /><pre style=\"background-color:#ECECEC; border:dashed .1em #3E62A6; font-family:Consolas, Courier New, Courier, Monospace; font-size:1em; margin-top:0; padding:.5em; height:auto; overflow:auto; overflow-x:auto; overflow-y:auto;\">\r\n        System.IO.Directory.SetCurrentDirectory(\"c:\\\\temp\");\r\n        zip.AddItem(\"build\");\r\n        zip.Save(); \r\n</pre>",
    "PostedDate": "2007-12-04T20:03:41.63-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "61281",
    "ThreadId": "18421",
    "Html": "\r\nThat's great.<br /><br />Many thanks.<br /><br /><i>JW</i><br />",
    "PostedDate": "2007-12-05T03:19:58.15-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "63515",
    "ThreadId": "18421",
    "Html": "\r\nThis way will include the tail folder name of the current directory name, e.g \"D:\\fldr\\abc\" then in the zip file the root dir is \"abc\". Maybe this is not your expected result.<br /><br />If use the overload methods AddXXX(fileOrDirectory, directoryInArchive) can resolve the issue.<br /><br /><br />Tao<br />",
    "PostedDate": "2007-12-17T08:55:38.943-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]