The code uses custom code while it could use file_scan_directory.

Comments

sun’s picture

Status: Active » Closed (works as designed)

No. If you look a bit closer, we are scanning for directories, not for files. Also explained in the comments, btw.