{
  "WorkItem": {
    "AffectedComponent": {
      "Name": "",
      "DisplayName": ""
    },
    "ClosedComment": "not a bug - RTFM",
    "ClosedDate": "2011-06-13T11:56:40.703-07:00",
    "CommentCount": 0,
    "Custom": null,
    "Description": "Hi,\n \nI am using the Ionic.zip for adding and saving pdf files as zip.\n \nNow the trouble is the while i am doing the \".Save(filepath)\". it is making the complete directory structure in the zip file and saving it then. I don't want the complete file structure as the zip files are delivered to my client and i don't want him to view all those folder structure.\n \nPlease advise",
    "LastUpdatedDate": "2014-05-05T06:20:27.18-07:00",
    "PlannedForRelease": "",
    "ReleaseVisibleToPublic": false,
    "Priority": {
      "Name": "Low",
      "Severity": 50,
      "Id": 1
    },
    "ProjectName": "DotNetZip",
    "ReportedDate": "2010-09-22T04:06:18.65-07:00",
    "Status": {
      "Name": "Closed",
      "Id": 4
    },
    "ReasonClosed": {
      "Name": "Unassigned"
    },
    "Summary": "remove file structure while saving zip file",
    "Type": {
      "Name": "Issue",
      "Id": 3
    },
    "VoteCount": 1,
    "Id": 11987
  },
  "FileAttachments": [],
  "Comments": [
    {
      "Message": "Did anybody solve this issue?  I have the same use case.  while adding c:\\folder\\folderB\\folderC\\myFile.xls, my zip file gets created fine..however when i go to extract it, the zip file has that folder structure inside of it.  I don't want my customers to have to navigate 5 folders to extract the myFile.xls.  \r\n\r\nis there a way to turn this off?",
      "PostedDate": "2010-12-27T14:58:30.697-08:00",
      "Id": -2147483648
    },
    {
      "Message": "To overcome this problem, while adding files to the zip, instead of using AddFile(<filePath>) use AddFile(<filePath>, \"\").",
      "PostedDate": "2011-03-22T10:34:38.953-07:00",
      "Id": -2147483648
    },
    {
      "Message": "Yes, i figured that out. thanks for posting.  I actually use (filepath, \"/\")",
      "PostedDate": "2011-03-22T13:27:18.67-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2011-06-13T11:56:40.703-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-02-21T18:43:26.07-08:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-05-16T05:31:43.737-07:00",
      "Id": -2147483648
    },
    {
      "Message": "thank for the solution",
      "PostedDate": "2014-05-05T06:20:27.18-07:00",
      "Id": -2147483648
    }
  ]
}