I don't know if this is the correct site for this.
I would like to have an efficient way to download all the files that in a course. As a student I can of course not change anything about the Moodle installation.
The best way I found was to use the DownThemAll! Firefox extension. Go to the course page, fast filter for resource/view.php, check the All files and Disable others boxes. That way I was able to download all files, including source code text files which might have odd file extensions.