pub fn recover_recursive(
root_path: Option<&str>,
max_depth: Option<usize>,
force: bool,
dry_run: bool,
exclude_patterns: &[String],
register: bool,
) -> Result<()>Expand description
Recursively walk a directory tree and recover orphaned sessions for all workspaces found.
This combines the logic of detect_orphaned (finding orphaned workspace hashes and
copying sessions to the active workspace) with register_recursive (using the workspace-map
filter for fast scanning). Optionally registers recovered sessions in VS Code’s index.