Searches the shared #RLV folder tree and replies with the path of the first folder whose name contains every search term. This lets a script find an outfit without knowing exactly where the user filed it.

Syntax

@findfolder:<part1>[&&<part2>...]=<channel>

Parameters

part1 … partN
Substrings joined with &&. Matching is case-insensitive (the command and the folder names are both lowercased). Empty parts are dropped.

Return value

The path from #RLV to the folder, with / between levels and #RLV itself not included (e.g. Restraints/Leather cuffs). The reply is empty if nothing matches or there is no #RLV folder.

Specification

The search is depth-first and post-order: within a folder, each subfolder's whole subtree is searched before the folder itself is tested. So a matching descendant is returned in preference to a matching parent, and siblings are visited in the inventory model's order (not necessarily alphabetical). Folders whose names start with . (hidden) or ~ (not yet sorted) are skipped, along with everything inside them.

Caveats

Examples

// Find the user's red latex outfit wherever it is
llOwnerSay("@findfolder:latex&&red=-81234");
// listen(): if (msg != "") llOwnerSay("@attachall:" + msg + "=force");

See also

Implementation notes

RRInterface.cpp 1848 calls getFullPath(findCategoryUnderRlvShare(option)). findCategoryUnderRlvShare() (3191-3229) splits on &&, recurses into non-./~ children first, then tests the current folder with findMultiple(). getFullPath(cat) (5398-5412) joins names up to #RLV.

Client differences

No differences found between Marine's RLV and CoolVL (mkrlinterface.cpp 1853-1857, 3915-3966).

Comparison with RLVa

This command works differently from RLVa's @findfolder; see the comparison.