ZF-9323: Zend_Filter_Compress archive should support array of files
Description
Zend_Filter_Compress can compress complete directories but it would be handy if it could compress an arbitrary user defined array of files.
eg:
$filter = new Zend_Filter_Compress(array( 'adapter' => 'Zip', 'options' => array( 'archive' => 'filename.zip' ), ));
$compressed = $filter->filter(array('file1', 'file4', 'file5'));
Comments
Posted by Thomas Weidner (thomas) on 2010-03-04T14:41:14.000+0000
This does not work.
LZF for example can only compress strings... it does not accept files.
Posted by Christian Gijtenbeek (gijtenbeek) on 2010-03-16T03:45:02.000+0000
that's true - but 'zip' and 'tar' do support files. Zend even supports to zip up a complete directory, but not an arbitrary list of files. Hence this feature request.
Posted by Markus Obrist (markusobrist) on 2010-12-08T04:12:58.000+0000
I am also looking for exactly this functionality. Hope it is getting implemented.