Expand all folders inside a folder?

how can i Expand all folders inside a folder?

can i make a script that does it? or automatically or otherwise? neither ■■■■■■■, grok nor deepseek understand Opus lol.

If you mean within the current folder, there's an item that does that in the default Folder menu.

For other expansions, it can be done using variants of the Go EXPANDBRANCH command which that menu item uses. That can take a wildcard, but the wildcard is only for folder names not full paths. That would be good enough if the folder you want to expand is one of the ones directly below the current folder, or has a unique name.

If you need to expand based on full paths, you could use the command within a script that adds the folders you want to expand to the Command object before running the command on it.

perfect thanks!

Just remembered this exists, which may be useful: