[#4604] Ability to download all files, or folder as .zip
Summary Ability to download all files, or folder as .zip
Queue Gollem
Queue Version HEAD
Type Enhancement
State No Feedback
Priority 1. Low
Owners
Requester s.newslists@googlemail.com
Created 2006-11-01 (4701 days ago)
Due
Updated 2009-06-28 (3731 days ago)
Assigned
Resolved 2009-06-28 (3731 days ago)
Milestone
Patch No

Comments
s.newslists@googlemail.com 2006-11-01 09:46:57
Ability to download all marked files, or a folder as .zip

fschuett@gymnasium-himmelsthuer.de 2009-06-05 17:36:10
> Ability to download all marked files, or a folder as .zip

Hi, I implemented a feature that might help.

1. Ability to recursively compress a folder into a .zip file.

2. Ability to extract a .zip file recursively.



I attach a patch for my horde3 (3.1.3) installation and two

graphics that are displayed next to the "download" graphic.



fschuett@gymnasium-himmelsthuer.de 2009-06-05 17:37:49
> Ability to download all marked files, or a folder as .zip

2. attachment compress.png (borrowed from ark from KDE.

this file need to be placed into horde3/themes/graphics

fschuett@gymnasium-himmelsthuer.de 2009-06-05 17:39:08
> Ability to download all marked files, or a folder as .zip

  3. attachment extract.png (borrowed from ark from KDE.

  this file need to be placed into horde3/themes/graphics



PS: I don't know how to submit a patch or otherwise contribute.

If this is the wrong way, please tell me.



fschuett@gymnasium-himmelsthuer.de 2009-06-07 08:44:48
I forgot to attach the changes in the configuration files.

The file /etc/horde/gollem/backends.php and

/etc/horde/gollem/prefs.php need to be adjusted.



fschuett@gymnasium-himmelsthuer.de 2009-06-07 08:45:32
This is the 2. file: /etc/horde/gollem/prefs.php

fschuett@gymnasium-himmelsthuer.de 2009-06-07 08:47:01
There is a weakness in handling empty directories in archives. They 
are not extracted correctly. The following patch to the patched 
Gollem.php corrects this weakness.

Michael Slusarz <slusarz@horde.org> 2009-06-08 17:53:02
Same issue as in Ticket #8096 - you can't assume that ZipArchive is 
available.  It would really be better to implement ZipArchive 
compression code in the Horde_Compress library where the best 
compression method (ZipArchive vs. native PHP code) could be 
auto-detected instead.