How to retrieve Branches of a MiniTree?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

How to retrieve Branches of a MiniTree?

Post by SkyFrontier »

I'd like to have a list of the loaded elements of a branch out of miniTree. How could I achieve that?

(I know, I know - quite a lame question, but I'm not at scritpting as much I once was...)
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

highend
Posts: 13313
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: How to retrieve Branches of a MiniTree?

Post by highend »

One way:

Code: Select all

    $branch = "D:\Users\Highend\Development";
    $branch = regexreplace($branch, "([\\.+(){\[^$])", "\$1");
    $elements = regexmatches(get("tree", <crlf>), "$branch.*", <crlf>);
One of my scripts helped you out? Please donate via Paypal

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: How to retrieve Branches of a MiniTree?

Post by SkyFrontier »

Awesome! Thanks once again, highend!
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

Post Reply