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

Option for ignoring original tree preceding of the target directory

Open bdalina54 opened this issue 6 years ago • 0 comments

Is there an option for ignoring or inclusion the original tree preceding of the target directory?

$this->zip->zip_files( array('main/path2/path3' , 'main/deep2/deep3'), 'path/save_here.zip');

inside the save_here.zip

-main/path2/path3 -main/deep2/deep3

$this->zip->zip_files( array('main/path2/path3' , 'main/deep2/deep3'), 'path/save_here.zip', FALSE);

Hope there is a third parameter for the option (TRUE or FALSE) for the inclusion or ignoring tree preceding

Expected result inside the save_here.zip

save_here.zip -path3 -deep3

bdalina54 avatar Feb 27 '19 09:02 bdalina54