Why would you use Archive::Zip to get the names of the files not yet in the archive?
Use File::Find to get the names of the files not in the archive.
| [reply] |
Because I would have to compare the source folders/files with those in the archive. To much code in my opinion.
All I want is the script selecting - let's say - 300 files, adding them to an archive and deleting the source files from its source folders. Then execute again. Next 300 files ... and so on, up until the source folders are empty and one (now big archive) is written.
I'm still wondering why the script is totally ignoring the selection of entries in the array.
| [reply] |
Have you considered what ->addTree is actually doing? It is not a function that purely returns information.
I think you should rethink your approach and consider getting two lists, one list of the files in the archive and one list of the files not in the archive, then eliminate the members in both lists (see perlfaq4) and then add the appropriate number of remaining files to the archive.
| [reply] [d/l] |