Skip to main content

load_current

Function load_current 

Source
pub fn load_current(
    data_dir: &Path,
    scope: Option<&str>,
) -> Result<(VaultMap, Vec<Stale>), CloudError>
Expand description

The vault map at data_dir without stale resolutions, as scope (the connected Cloud and account, crate::vault::vault_scope; None when not connected) sees it; the file is rewritten when one was dropped. What every pass that sends (sync, task proposals) reads, so none sends into a vault the checkout left, nor one of another Cloud or account (rc3-81, bd 39540: a pass during cloud connect elsewhere sends nothing).