Hide/Show folders without losing selection

When the FAYT field is enabled, I can hide and reveal all folders by means of a toggle icon. Any folders that were selected before all folders were hidden are still selected when all folders are revealed.

I have played around unsuccessfully with attempts at doing the same thing from buttons. I am able to hide and reveal folders but have not found a way of retaining folder selection across the process. Can this be done?

Regards, AB

Set QUICKFILTERFLAGS=hidedirs acts as a toggle and has the same effect as clicking that button on the filter bar.

So elegantly simple! Another bit of the documentation I have evidently failed to read. Thanks Leo, as always.

Regards, AB