Zip class: don't store rootfolder in archive but DO store subfolders |
[eluser]codex[/eluser]
When using the Zip encoding class you have to point to a directory that holds the files to be archived. But when you zip the files the root folder is zipped with it also, which I don't want. I have this piece of code, provided by forum member Tassoman (http://ellislab.com/forums/viewthread/46681/). It pretty much does what I need, but it also strips the subfolders and are therefore not included. I must admit that I don't fully understand what's happening in the code and how/if I can fix it. Anyone got a clue? Code: class MY_Zip extends CI_Zip { |
Messages In This Thread |
Zip class: don't store rootfolder in archive but DO store subfolders - by El Forum - 02-01-2008, 11:44 AM
Zip class: don't store rootfolder in archive but DO store subfolders - by El Forum - 09-16-2008, 09:20 AM
Zip class: don't store rootfolder in archive but DO store subfolders - by El Forum - 06-12-2010, 01:40 PM
Zip class: don't store rootfolder in archive but DO store subfolders - by El Forum - 06-14-2010, 10:16 AM
|