Handlebars doubt on aggregations

Hi everyone i have a folder hierarchy on my collection. However i would like to know how to only get the granfather folder name I cant seem to get it through the parent.name. it only shoes the parent but I need the grandpa only. Im using handlebars hyml report rxtra template and im modifying it myself. Thnks for any help