analyze_children


Description:

public async int analyze_children (Folder folder, HashMap<int,VectorMetadata> metadata_keymap) throws Error

Recursive entry: analyze children first, then this folder.

For each direct child that is a Folder, yields to analyze_children(child, metadata_keymap). For each alias (base_type "fa") whose points_to is a Folder, yields to analyze_children(points_to, metadata_keymap). Once all children are done, calls analyze(folder, metadata_keymap) and updates metadata_keymap with the new folder OLLMfiles.SQT.VectorMetadata (store full object, do not copy description).

Parameters:

folder

The folder to process

metadata_keymap

Id-indexed map ((int)file_id → OLLMfiles.SQT.VectorMetadata); key type is int (cast from int64); updated when this folder is analyzed

Returns:

Number of folders analyzed in this subtree