How do I get list of all the folders in terraform

I am trying to list all the folders in ${path.root}.

Is it possible.