pub(crate) fn adopt(
fs: &FileStore,
mstore: &Store,
agent_uid: &str,
list_id: &str,
choices: &[(usize, String)],
) -> Result<AdoptReport, AdoptError>Expand description
Adopt the chosen folders of list list_id into agent_uid’s record.
Choices are (index, dir_hash) from the list; nothing else from the
caller is trusted.