title: Perl Archive::zip -- file doesn't get added
body: <p>I am traversing a directory tree (subversion backup) and add every file and directory that I find to a zip file. This works pretty slick. However two files are missing.</p>
  
  <pre><code>sub zipFolder
  {
      my $dir = 'D:\\SVN-Backup\\EnterpriseDataRepository\\20110502-0630';
      my $zip = Archive::Zip-&gt;new();
      my $zipped = $zip-&gt;addDirectory($dir);
      $zipped-&gt;desiredCompressionLevel( 9 );
      $zipped-&gt;desiredCompressionMethod( COMPRESSION_DEFLATED );
          print "Before find\n";
      find(\&amp;zip_file, $dir);
      print "after find\n";
      die 'write error' unless $zip-&gt;writeToFileNamed('D:/SVN-Backup/CCBuild/backup.zip' ) == AZ_OK;
  
      sub zip_file 
      {
            print $File::Find::name;
            if ( -d $File::Find::name ) { # just grab directories, not files.
              $zip-&gt;addDirectory($File::Find::name);
              print " : dir\n";
           } else { #zip files
             print " : file\n";
             $zip-&gt;addFile($File::Find::name) != AZ_OK ||  print "couldn't add file \n";
           }
  
      }
  }
  </code></pre>
  
  <p>The file D:\SVN-Backup\20110502-0630/db/revprops/0/0 will not be added to the zip archive. Any idea what I can do to get the this file added as well?</p>
  
  <pre><code>...
  D:\SVN-Backup\20110502-0630/db/uuid : file
  D:\SVN-Backup\20110502-0630/db/revprops : dir
  D:\SVN-Backup\20110502-0630/db/revprops/0 : dir
  D:\SVN-Backup\20110502-0630/db/revprops/0/0 : file
  D:\SVN-Backup\20110502-0630/db/revprops/0/1 : file
  D:\SVN-Backup\20110502-0630/db/revprops/0/10 : file
  ...
  </code></pre>
  
  <hr>
  
  <p>Congrats to Andy for his contribution. He solved the Problem.</p>
  
  <blockquote>
    <p>A related bug:
    <a href="https://rt.cpan.org/Public/Bug/Display.html?id=27463" rel="nofollow">rt.cpan.org/Public/Bug/Display.html?id=27463</a>,
    but that's only about files, not
    directories. What version of
    Archive::Zip do you have?</p>
  </blockquote>
  
  <p>I have perl 5.8.8 which does seem to be older than the fix.</p>