I'm a little confused about how to add a directory and the files in it to a zip file using Archive::Zip
$zip->addDirectory($name); #creates empty directory $zip->addFile($name); #adds file to zip's root folder # I have no clue how to add a file to the newly created directory $zip->addTree($dir,$zipFoldername); #works, but will include all of dir's subfolders if any exist
In reply to directories in Archive::Zip by expat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |