The listfolders tag can be used to create a quick-n-dirty HTML unordered list of the folders belonging to a template.
<cms:listfolders masterpage='news.php' />
Supports the same parameter as the folders tag. In addition, takes one more parameter - show_count.
Please see the folders in documentation for an expanation of these parameters.
It is a self-closing tag and sets no variables of its own.