It just does `ls`, and if random file happens to be a directory (or something worse), it prints out a error.
Creating elaborate directory structure is pretty convenient, I think. It would be a useful feature.
I suggest replacing `ls` with `find -type f ! -regex '.*/\..*'`. (regex part skips hidden files).
Version: Fluxbox 1.3.2-gentoo