Added treeFilePaths utility method