pub fn update_map<R>(
data_dir: &Path,
change: impl FnOnce(&mut VaultMap) -> R,
) -> Result<(R, VaultMap), CloudError>Expand description
Load, change and save projects.json at data_dir under its state lock
(rc3-81 S2), so a sync that resolves a checkout and an enrollment that
switches the Cloud never write over each other. The file is written only
when change changed the map; the lock is held for local file work only.