php-zip
php-zip copied to clipboard
Option for ignoring original tree preceding of the target directory
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