You are right, it is under review and awaits approval. I can upload the latest beta 23.04 here if you like.
This is the link though:
https://moodle.org/plugins/view.php?plugin=block_download_all_published_files
I am a very very old fashioned hobby-programmer. I have only little spare time and I had some acquaintance with cvs (code versioning system) and only an account on github but very little experience with it.
For the moment being I must await approval because of security concerns. I.e. no student should be allowed to download course-backup files or any other files, e.g. in assignments, databases, or any other activity.
I think I solved the security issues with a simple line of code, but I need more experienced (core) programmers to decide on that and help me where I need help:
foreach ($result as $file) {
list($context, $course, $cm) = get_context_info_array($file->contextid);//Cr: might be too much here, but need the context from contextid as object AND, most important, cm to check visibility of the file/folder
$fileinfo = $browser->get_file_info($context, $file->component, $file->filearea, $file->itemid, $file->filepath, $file->filename);//works well and includes the hash codes, returns null if user is not allowed to see/grab that file
if ($fileinfo == null)
{
continue;//continue with next file, as user is not allowed to zip/download it
}
$f = $fs->get_file($context->id, $file->component, $file->filearea, $file->itemid, $file->filepath, $file->filename);//Cr: otherwise get file from storage and add it to the zip archive
Rosario