title: Unable to zip files using zip4j
body: <p>Unable to create a zip file from list of directories. I am able to read the directories and print them. How ever, when I try to zip them, its throwing error:  </p>
  
  <pre><code>net.lingala.zip4j.exception.ZipException: java.io.FileNotFoundException: D:\DZipTest\sample - Copy (1) (Access is denied)
      at net.lingala.zip4j.core.ZipFile.readZipInfo(ZipFile.java:431)
      at net.lingala.zip4j.core.ZipFile.checkZipModel(ZipFile.java:935)
      at net.lingala.zip4j.core.ZipFile.addFiles(ZipFile.java:263)
      at net.lingala.zip4j.examples.zip.AddFilesWithAESEncryption2.&lt;init&gt;(AddFilesWithAESEncryption2.java:107)
      at net.lingala.zip4j.examples.zip.AddFilesWithAESEncryption2.main(AddFilesWithAESEncryption2.java:121)
  Caused by: java.io.FileNotFoundException: D:\DZipTest\sample - Copy (1) (Access is denied)
      at java.io.RandomAccessFile.open(Native Method)
      at java.io.RandomAccessFile.&lt;init&gt;(RandomAccessFile.java:241)
      at net.lingala.zip4j.core.ZipFile.readZipInfo(ZipFile.java:420)
      ... 4 more
  </code></pre>
  
  <p>Here is the class file:</p>
  
  <pre><code>                public AddFilesWithAESEncryption2() 
                     {                    
                      String ExtractedFiles = "D:/DZipTest/";
                      String Directories;
                      File folder2 = new File(ExtractedFiles);
                      File[] listOfFiles2 = folder2.listFiles();
  
                      for (int i = 0; i &lt; listOfFiles2.length; i++) 
                      {
                          if (listOfFiles2[i].isDirectory()) 
                          {
                              Directories = listOfFiles2[i].getName();
                              String filesToBeZipped = "D:/DZipTest/" + Directories;
                              System.out.println(Directories);
  
                              // Initiate ZipFile object with the path/name of the zip file.
                              ZipFile zipFile = new ZipFile(filesToBeZipped);
  
                              // Build the list of files to be added in the array list
                              // Objects of type File have to be added to the ArrayList
                              ArrayList filesToAdd = new ArrayList();
                              filesToAdd.add(new File(filesToBeZipped));
  
                              // Initiate Zip Parameters 
                              ZipParameters parameters = new ZipParameters();
                              // set compression method to deflate compression
                              parameters.setCompressionMethod(Zip4jConstants.COMP_DEFLATE); 
  
                              // DEFLATE_LEVEL_NORMAL - Optimal balance between compression level/speed
                              parameters.setCompressionLevel(Zip4jConstants.DEFLATE_LEVEL_NORMAL);
  
                              // Set the encryption flag to true
                              parameters.setEncryptFiles(true);
  
                              // Set the encryption method to AES Zip Encryption
                              parameters.setEncryptionMethod(Zip4jConstants.ENC_METHOD_AES);
                              parameters.setAesKeyStrength(Zip4jConstants.AES_STRENGTH_256);
  
                              // Set password
                              parameters.setPassword("test");
  
                              // Now add files to the zip file
                              // Note: To add a single file, the method addFile can be used
                              // Note: If the zip file already exists and if this zip file is a split file
                              // then this method throws an exception as Zip Format Specification does not 
                              // allow updating split zip files
                              zipFile.addFiles(filesToAdd, parameters);
                          }
                      }
  
                  } catch (Exception e) {
                      e.printStackTrace();
                  }
              }
  </code></pre>
  
  <p>What I am trying to do is extract files from zip and re-zip them with encryption because I am not able encrypt them directly.</p>