php-zip icon indicating copy to clipboard operation
php-zip copied to clipboard

How to set the path of the files/folders when creating an archive

Open klausveliu opened this issue 7 years ago • 0 comments

Hello, I am trying to add some folders when creating a zip file, but unfortunately I can't figure out how can I set the path or the directories content. To summarize the issue $zip->zip_add(DIR . "/myfiles/"); puts the files and folders in the root of the zip file, in my case I want to put them under myfiles/ folder inside the zip file.

Thank you!

klausveliu avatar Dec 12 '17 22:12 klausveliu