title: How to delete a non-empty folder in a zip file using Ruby gem 'zip' or 'rubyzip'?
body: <p>I tried to remove a non-empty folder in a zip file.
  I am using ruby 1.8.7 in Ubuntu 10.10. I tried <code>rubyzip</code> gem and <code>zip</code> gem</p>
  
  <pre><code>require 'zip/zipfilesystem'
  Zip::ZipFile.open('apkfile.apk') { |zfile| zfile.dir.delete('META-INF') }
  </code></pre>
  
  <p>it reported following error</p>
  
  <blockquote>
    <p>Errno::ENOENT: No such file or directory</p>
  </blockquote>
  
  <p>Now I could only delete every entry in the directory and the directory would be deleted finally after last file in the directory being deleted.</p>
  
  <pre><code>require 'zip/zipfilesystem'
  Zip::ZipFile.open('apkfile.apk') do |zfile|
      zfile.file.delete("META-INF/foo1.bar") 
      zfile.file.delete("META-INF/foo2.bar")
      zfile.file.delete("META-INF/foo3.bar")
  end
  </code></pre>
  
  <p>Is it possible to use <code>FileUtils.rm_rf</code> method in fileutils gem in the zip file?</p>