Hi,
Moodle has some directories without index.php, which may allow for seeing directory listing if your web server is configured this way.
Searching on the tracker, this has been reported few times but always closed as "not a bug", eg see https://tracker.moodle.org/browse/MDL-36815 .
I think that reasoning "Developers do not put there any secrects because everybody can see open source code" is wrong, hiding Open Source code is not the point in preventing directory listing.
Directory listing is harmful because it may:
* give attacker information about exact Moodle version that is used
* give attacker information about modules/plugins used
* give attacker information about possible extra files dropped into Moodle installation
Of course directory listing should be disabled on the server level but by supporting it in application (via trivial addition of empty index.php files), we are helping to secure otherwise less-secure servers. I think it's worth it, what do you think?
cheers,
Tomek