I had a notion there was a hotkey for this in macOS, but cant remember or find it.
I should be very content if any of all the fine users here could set me right on this.
I attach two screenshots form finder (in the Danish version)...
In finder using listview you may see what is inside at folder by clicking the little '>' sign. It responds by pointing downward lige a 'v' and shows you the files that may reside in that folder.
Clicking again 'collapses' the view...
I have a lot of music placed in a specific folder, and each album has its own foldername. (There are more than 1.000 such Album-folders)
Sometimes it happens that umpteen folders have been opened (over time) and I want to collapse it all, but the only way I know of is clicking every 'v' so it collapses into the '>' version.
I would really like to do this in one go, by a hotkey that either execute this collapse, or by calling a macro that does the same job.
I have a specific Keyboard Maestro Macro to close every folder in a Finder Window. It just runs the series of hotkeys to do this but still very useful for me.
Yes, I found that I most often want to just close all the expanded folders at once which is why I made a Macro that started with the ⌘A command to first select all.