Skip to main content

list_profiles

Function list_profiles 

Source
pub fn list_profiles(
    root: &AppRoot,
    adapters: &[&dyn Adapter],
) -> Result<Listing>
Expand description

Reads what exists on disk, human-readable: each valid profile directory under <root>/profiles becomes a row naming every adapter that is materialized for it, in adapters order. Purely read-only: nothing is created, and a missing profiles directory is simply an empty listing.

Entries whose name starts with . are skipped and not counted. Anything else that is not a directory, not valid UTF-8 or not a valid profile name for the host platform is an unrecognized entry, as is any directory below a listed profile that is not a known agent id.