1
hey there,
Just finishing up some tweaking of indexscan module.
I finished allready the single file delete, auto deleting files for instance (Thumbs.db) // If set to do so in config of course
Also I have created a create backup of folders where output goes into another folder (backedup) and contains nothing but the empty folders and index.html where no index folders exists in original. (nice in developing to auto create index.html files)..
However I have been looking at the opportunity to present the result to user as zip file, and was thinking to recursively add files to zip using sonmething like this
function indexscan_createZip ($folder, $name) {
$dir_iterator = new RecursiveDirectoryIterator($folder);
$iterator = new RecursiveIteratorIterator($dir_iterator, RecursiveIteratorIterator::SELF_FIRST);
foreach($iterator as $ff) {
if ($ff->IsFile()) {
// add $ff to zip($name) ???
}
}
}
Does a class exist for creating zip files like this in XOOPS and php < 5.20 ? and how excactely to do it if there does ?