pub fn recover_interrupted(
db_path: &Path,
salt_path: &Path,
password: &str,
) -> Result<bool, String>Expand description
Finishes or abandons a rekey that a crash interrupted. Cheap when there is nothing to do: one existence check. Returns whether it changed anything.
If vault.salt.new exists, the new password opening the database through it proves the
database was already swapped, so the salt rename is completed; otherwise the rekey never got that
far and its leftovers are removed.