{
  "WorkItem": {
    "AffectedComponent": {
      "Name": "",
      "DisplayName": ""
    },
    "ClosedComment": "",
    "ClosedDate": null,
    "CommentCount": 0,
    "Custom": null,
    "Description": "Hello,\n \n \n \nWhen I create a zip file.\n \nThe file inside the zip has the whole path where it's been created.\n \nWhen I unzip mannually, it creates the whole directory tree inside the extraction folder .\n \nIs there any way file can reside in the root of the Zip file?\n \n \n \nThanks,\n \nGauri",
    "LastUpdatedDate": "2013-02-21T18:42:59.11-08:00",
    "PlannedForRelease": "",
    "ReleaseVisibleToPublic": false,
    "Priority": {
      "Name": "Low",
      "Severity": 50,
      "Id": 1
    },
    "ProjectName": "DotNetZip",
    "ReportedDate": "2011-11-16T10:01:17.247-08:00",
    "Status": {
      "Name": "Proposed",
      "Id": 1
    },
    "ReasonClosed": {
      "Name": "Unassigned"
    },
    "Summary": "Is there any way file can reside in the root of the Zip file?",
    "Type": {
      "Name": "Issue",
      "Id": 3
    },
    "VoteCount": 3,
    "Id": 14442
  },
  "FileAttachments": [],
  "Comments": [
    {
      "Message": "System.IO.Directory.SetCurrentDirectory(\"directory your files reside in\");\r\nIonic.Zip.ZipFile zipFile = new Ionic.Zip.ZipFile();\r\nzipFile.AddSelectedFiles(\"name = *.*\");",
      "PostedDate": "2011-12-12T14:16:09-08:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2012-03-13T04:24:48.067-07:00",
      "Id": -2147483648
    },
    {
      "Message": "I am experiencing this problem as well. Using AddSelectedFiles and passing a search criteria string, if I pass an empty string for the directoryPathInArchive argument (the documentation says that will place the found files in the root directory of the archive), the sub-directories are still created in the zipped archive. \r\n\r\nI have posted a comment on this discussion thread: http://dotnetzip.codeplex.com/discussions/347853 regarding this issue but, have received no response yet. \r\n\r\nThanks",
      "PostedDate": "2012-03-13T08:55:16.15-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2012-03-14T15:28:49.28-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-02-21T18:42:59.11-08:00",
      "Id": -2147483648
    }
  ]
}