Skip to main content

restore

Function restore 

Source
pub fn restore(paths: &Paths, dry_run: bool) -> Result<RestoreOutcome>
Expand description

Restore everything in the ledger.

For each entry: rename suspect back to original (overwriting any stub that lived there), then drop the entry. Entries whose suspect file is missing are surfaced as SuspectMissing but don’t abort the rest. On success the ledger file is removed.

§Errors