You can swipe-left on folders, to find the “Collapse/Expand” button. It is only available for folders actually containing subfolders.



You can also swipe on “All Documents” to collapse/expand all the folders at once.