title: xamarin ionic zip unzip causes error
body: <p>I have the following method to unzip a file after download. But it ends with an error</p>
  
  <blockquote>
    <p>System.ArgumentException Path is empty at
    System.IO.Directory.CreateDirectory System.String path 0x00000 in file
    unknown at ionic.zip.zipentry.internalExtract system.string basedir
    system.io.stream outstream system.string password 0x00000 in filname
    unknown.</p>
  </blockquote>
  
  <p>The zip file does not have a password and can be opened e.g. with android zip</p>
  
  <pre><code>public void ExtractBilderZip()
  {
      string documentsPath = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal);
      string unzipziel = Path.Combine(documentsPath, "Bilder");
  
      // if Bilder does not exist create subdirectory
      if (Directory.Exists(unzipziel)==false)
      {
          var directoryname = Path.Combine(documentsPath, "Bilder");
          Directory.CreateDirectory(directoryname);
  
      }
  
      //////////////////////////////////////////////////////
      string zipToUnpack = localPathB;   //localPathB ist the zipFile name including path
  
      // I tried with and wihout the following 2 lines which makes no diffence
      zipToUnpack = zipToUnpack.Replace('/', Path.DirectorySeparatorChar);
      unzipziel = unzipziel.Replace('/', Path.DirectorySeparatorChar);
  
      try
      {
          ZipFile zip1 = ZipFile.Read(zipToUnpack);
  
          zip1.ExtractAll(unzipziel,ExtractExistingFileAction.OverwriteSilently);       
      }
      catch (System.Exception ex1)
      {
          //System.Console.Error.WriteLine("exception: " + ex1);
          for (int i = 0; i &lt; 10; i++)
          {
              Toast.MakeText(this, "exception: " + ex1, ToastLength.Long).Show();
          }
      }
  }
  </code></pre>