title: Unzipping subdirectories and files in C#
body: <p>I am trying to implement an unzipping feature in a project that I am currently working  on, but the problem is that I have some limitations when it comes to licening and I am required to stay away from GPL alike licenses, because the project is closed sourced.</p>
  
  <p>So that means that I can no longer use SharpZipLib.. so I moved to .Net libraries
  Currently I am trying to work with the ZipArchive library.</p>
  
  <p>The problem is that it does not extract for directories/subdirectories, so if I have blabla.zip that has 
  file.txt inside and /folder/file2.txt the whole thing will be extracted to file.txt and file2.txt, so it ignores the subdirectory.</p>
  
  <p>I am using the example from MSDN website.
  which looks something like:</p>
  
  <pre><code>using (ZipArchive archive = ZipFile.OpenRead(zipPath))
  {
    foreach (ZipArchiveEntry entry in archive.Entries)
    {
      entry.ExtractToFile(Path.Combine(extractPath, entry.FullName));
    } 
  }
  </code></pre>
  
  <p>Any idea  how to solve this?</p>