{
  "WorkItem": {
    "AffectedComponent": {
      "Name": "",
      "DisplayName": ""
    },
    "ClosedComment": "",
    "ClosedDate": null,
    "CommentCount": 0,
    "Custom": null,
    "Description": "When using the following code:\n \nZipFile zip = ZipFile.Read(ms);\nzip.ExtractAll(LatestPath);\n \nAn \"Path is empty\" exception message is triggered by that DotNetZip tries to pass \"\" to Directory.Create() in ZipEntry.Extract, line 760.\n \nThe cause is that the variable targetFileName contain the path using \"\\\" as directory separator. When run on linux the path is interpreted as a single filename making the directory path \"\".\n \nI would guess it could be fixed in the method ValidateOutput() in the same file line 1417:\n- outFileName = outFileName.Replace(\"/\",\"\\\\\");\n+ outFileName = outFileName.Replace('/', Path.DirectorySeparatorChar);\n \nIt works but someone who knows it should have a look at it.",
    "LastUpdatedDate": "2015-05-26T01:37:10.407-07:00",
    "PlannedForRelease": "",
    "ReleaseVisibleToPublic": false,
    "Priority": {
      "Name": "Low",
      "Severity": 50,
      "Id": 1
    },
    "ProjectName": "DotNetZip",
    "ReportedDate": "2012-05-30T16:11:34.37-07:00",
    "Status": {
      "Name": "Proposed",
      "Id": 1
    },
    "ReasonClosed": {
      "Name": "Unassigned"
    },
    "Summary": "\"Path is empty\" when extracting in a linux system.",
    "Type": {
      "Name": "Issue",
      "Id": 3
    },
    "VoteCount": 5,
    "Id": 15236
  },
  "FileAttachments": [
    {
      "FileId": 4699,
      "FileName": "Ionic.Zip Working on Mac & Linux.zip",
      "DownloadUrl": ".\\4699"
    }
  ],
  "Comments": [
    {
      "Message": "The main issue is:\r\n\r\nThe Dotnetzip library can't extract files on the Linux/MAC platform (including iOS).  You get the error, \"Argument Exception: Path is empty.\"\r\n\r\nThe whole library works fine except that the class ZipExtract has hardcoded replacing \"/\" with \"\\\\\".  Changing this behaviour to proper pathing allows the whole library to work fine.\r\n\r\nI have attached a file with the necessary changes for ZipEntry.Extract.cs, and a compiled version of the zip library.  This minor error with major ramifications has gone overlooked for years.",
      "PostedDate": "2013-02-14T15:11:30.57-08:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-02-21T18:42:50.207-08:00",
      "Id": -2147483648
    },
    {
      "Message": "Thank you, I hope this fix is already merged on main stream, worked perfectly on linux-mono.",
      "PostedDate": "2013-03-13T10:51:38.86-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-07-23T15:36:18.95-07:00",
      "Id": -2147483648
    },
    {
      "Message": "This bug makes the library unusable on linux, and the fix does indeed seem to work fine. It would be great to see this merged.",
      "PostedDate": "2013-07-23T15:37:44.22-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2014-04-29T06:23:54.413-07:00",
      "Id": -2147483648
    },
    {
      "Message": "What's the hold up with merging this? \r\n\r\nC# is now being used by a ton of Android and iOS devices, so being cross-compatible is a great advantage of any library.",
      "PostedDate": "2014-04-29T06:26:20.823-07:00",
      "Id": -2147483648
    },
    {
      "Message": "Thanks for the fixed version of library - now it's woking ok on Xamarin.Android (Monotouch), but only in DEBUG mode. When I switch project to RELEASE, I can't build my project - error: \r\n\r\n> The \"LinkAssemblies\" task failed unexpectedly.\nXamarin.Android.XamarinAndroidException: error XA2006: Reference to metadata item 'System.Void System.Console::set_ForegroundColor(System.ConsoleColor)' (defined in 'Ionic.Zip, Version=1.9.1.9000, Culture=neutral, PublicKeyToken=null') from 'Ionic.Zip, Version=1.9.1.9000, Culture=neutral, PublicKeyToken=null' could not be resolved.\r\n\r\nSo, can you please compile new version of this fixed library without using Console.ForegroudColor property? (System.Console on Xamarin.Android doesn't have property ForegroundColor, but Ionic.Zip access to this property on some places). I would be very grateful.",
      "PostedDate": "2014-05-09T05:27:19.45-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2015-03-27T08:20:23.57-07:00",
      "Id": -2147483648
    },
    {
      "Message": "I've just run into this issue, trying to use dotnetzip on linux.\r\n\r\nThe provided fix does work for me. However I would be much happier if this fix was in the main version of the code.\r\n\r\nWith xamarin for android and IOS and mono and .net being supported officially on linux and mac using .net core this is should be a very, I stress, a very high priority issue.\r\n\r\n",
      "PostedDate": "2015-05-26T01:35:10.623-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2015-05-26T01:37:10.407-07:00",
      "Id": -2147483648
    }
  ]
}