jeudi 31 octobre 2019

Zipping single files along with a folder using Chumper/Zipper in Laravel

I am trying to zip contents from a folder using Chumper/Zipper library in Laravel. The folder contains following files with a folder:

folder items

But after I am zipping, I am not getting the "temp" folder, but I am getting the content of temp folder. I want the single files as well as the folder. I have tried the following code:

 Zipper::make($makepath)->add($files)->close();

Thanks in advance.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire