Distinguish directories from filenames by adding class="directory" attributes to the former.
Discussed with: jkois@