#macro templateTree field filepath=''>
    <@tools.fileList type='task' path=filepath>
        <#list list as a>
        
            <#local path=filepath+'/'+a.fileName/>
        <#if a.directory>
            ${a.fileName}
            
                <@templateTree field path/>
            
<#else>
            
                ${a.fileName}
            
        #if>
        
        <#else>
            <@t.page 'empty_directory'/>
        #list>
    @tools.fileList>
#macro>