pub fn archive_unit(
mana_dir: &Path,
unit: &mut Unit,
unit_path: &Path,
) -> Result<PathBuf, Error>Expand description
Archive a closed unit to the dated archive directory.
Moves the unit file, marks is_archived = true, and updates the archive index.
Returns the archive path.