[Zope] Zip a file on the fly

Jan-Frode Myklebust janfrode@parallab.uib.no
Wed, 17 Oct 2001 18:30:05 +0200


On Thu, Oct 11, 2001 at 07:02:19PM +0200, Tom Deprez wrote:
> Hi,
> 
> I'm using LocalFS to show pushed jpeg files from a PACS system. These Jpeg files are all sorted in folders (each patient has a folder) etc.
> 
> Now I would like the user to be able to download a complete folder, just by clicking it on the browser. The best way to let the user download the whole folder is (I think) to first zip the folder and then let the user download the zip file. (If there are ways to download a complete folder, that's even better).
> 
> Now, are there people who know of a good python library for zipping a file (.zip format)
> Or do people know if it is possible to download a complete folder?
> 

I did this quite a while ago, even wrote a short note about it at 

	http://www.zope.org/Members/janfrode/localfs_zip

It's not using any zip-library, but rather calls zip directly. Hope it helps...


  -jf