Is it possible to list subfolders from a specific folder?
Context: I'm printing out hundreds of icons which are maintained by moving a directory structure directly over to my public assets folder. Currently, I grab and list all icons by looking at the parent folder for icons:
{% for image in craft.assets.source('iconLibrary').limit(null) %}
<li>...</li>
{% endfor %}
I'd like to call and list them by their individual folder names though. Is there a way to take a specific folder and return a list of subfolders?
Update: Brad's solution works! Though it's somewhat awkward having to call an image first to start at AssetFileModel. Hopefully this can be optimized as I'm running through a loop like the one above for each child folder now—
<!--find image in parent icon folder to access folder via AssetFileModel.-->
{% for image in craft.assets.id('9328') %}
<!-- get children of that asset's folder -->
{% for subfolder in image.folder.getChildren() %} //
{{ subfolder }} //prints each child folder name
{% endfor %}
{% endfor %}