Skip to content

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

@klausveliu

Description

@klausveliu

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!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions