I found out. Press Shift and Left Click on one of the little arrows to the left of a folder name and it collapses all the folders underneath it, then you can open it with a regular click and all the subfolders are closed
3 Likes