How can I have a script expand the currently selected folder in the Mini Tree to show just the direct subfolders under that folder and no further levels down? In other words, do the equivalent of clicking on the + control for the folder for the first time or after it's been hidden and put back into the Mini Tree.
I always use the Mini Tree and sometimes want to see all the direct subfolders under a parent folder instead of just the ones I've been visiting. So I started a script that does this, but can't find a way to do the final step.
Code: Select all
$path=tab("get", "path");
loadtree($path, 2); // first hide the parent folder
loadtree($path, 1); // then, add it back into the Mini Tree
// Next, how to expand $path to show just immediate subfolders only?
Jerry
Running on Windows 10 Pro 64-bit quad-core ASUS G752-VY notebook with 64 GB RAM, over 26 external USB3 drives attached via multiple powered hubs with letters and mount points, totaling 120+ TB. SCREEN SCALING: 125%