title: How can I delete a directory in a Zip file using .NET?
body: <p>How would I delete a directory in a .zip and all the files in it (preferably using DotNetZip)?</p>
  
  <p>Right now I'm running through all the files in the zip, but it doesn't work:</p>
  
  <pre><code>foreach (ZipEntry e in zip)
  {
      //If the file is in the directory I want to delete
      if(e.FileName.Substring(0, 9) == "FolderName/")
      {
          zip.RemoveEntry(e.FileName);                          
      }
  }
  </code></pre>
  
  <p>Is there a better way, if not, how would I make this work?</p>