{
  "WorkItem": {
    "AffectedComponent": {
      "Name": "",
      "DisplayName": ""
    },
    "ClosedComment": "fixed in changeset 27586.",
    "ClosedDate": "2009-01-12T14:38:17.783-08:00",
    "CommentCount": 0,
    "Custom": null,
    "Description": "IsDirectory does not seem to be properly set when a ZIP containing empty directories is opened.",
    "LastUpdatedDate": "2013-05-16T05:32:33.403-07:00",
    "PlannedForRelease": "",
    "ReleaseVisibleToPublic": false,
    "Priority": {
      "Name": "Low",
      "Severity": 50,
      "Id": 1
    },
    "ProjectName": "DotNetZip",
    "ReportedDate": "2009-01-08T08:18:00.42-08:00",
    "Status": {
      "Name": "Closed",
      "Id": 4
    },
    "ReasonClosed": {
      "Name": "Unassigned"
    },
    "Summary": "IsDirectory not properly set",
    "Type": {
      "Name": "Issue",
      "Id": 3
    },
    "VoteCount": 1,
    "Id": 6898
  },
  "FileAttachments": [
    {
      "FileId": 1663,
      "FileName": "test.odt",
      "DownloadUrl": ".\\1663"
    }
  ],
  "Comments": [
    {
      "Message": "Can you give me some simple test code to demonstrate what you mean? How did you generate the zipfile containing empty directories?  Can you upload such a zipfile to this work item?",
      "PostedDate": "2009-01-08T16:07:50.15-08:00",
      "Id": -2147483648
    },
    {
      "Message": "Attached is an empty OpenOffice Writer document in ODF format (actually a zip file). It contains some empty directories under Configurations2 root directory. DotNetZip does not set IsDirectory to true for these. The fix is simple - an one line else in ZipEntry.cs:\r\n\r\n// workitem 6607: don't seek if it is a directory.\r\nif( !ze.FileName.EndsWith( \"/\" ) )\r\n...\r\nelse ze.MarkAsDirectory(); // mark as directory\r\n\r\nI started this issue so that the bug could be fixed unless I understood something improperly and current behavior is for some reason intentional.\r\n\r\n",
      "PostedDate": "2009-01-11T07:13:03.08-08:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2009-01-11T07:13:05.78-08:00",
      "Id": -2147483648
    },
    {
      "Message": "Hmm, after looking at the code it seems clear I had misunderstood the spec relating to how to detect if an entry is a directory.  I think your fixes are correct - if and only if the entry ends in a slash, it's a directory.  I've changed the code in ZipEntry.cs and ZipDirEntry.cs to reflect that.",
      "PostedDate": "2009-01-12T14:38:07.44-08:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2009-01-12T14:38:17.783-08:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-02-21T18:44:33.943-08:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-05-16T05:32:33.403-07:00",
      "Id": -2147483648
    }
  ]
}