Retrieve folders of a project

projects is a list of projects. Please see this other example to learn how to retrieve all projects accessible by the user.

project = projects[0]
folders = project.get_children(types="Group")

Advanced query

meshql = '# -($Child)> $Group'
folders = project.traverse(meshql=meshql)