pub fn find_archived_unit(mana_dir: &Path, id: &str) -> Result<PathBuf, Error>Expand description
Find an archived unit by ID within the .mana/archive/ directory tree.
Searches recursively through .mana/archive/**/ for a unit file matching the given ID.
Returns the full path to the first matching unit file.
§Arguments
mana_dir- Path to the.mana/directoryid- The unit ID to search for
§Returns
Ok(PathBuf) with the path to the archived unit file if found
Err if the unit is not found in the archive
§Examples
ⓘ
let path = find_archived_unit(Path::new(".mana"), "12")?;
// Returns: .mana/archive/2026/01/12-unit-archive-system.md