pub fn archive_items<T: Serialize>(
store: MemoryStore,
scope: Option<&str>,
items: &[T],
cfg: &ArchiveConfig,
) -> Result<Option<PathBuf>, String>Expand description
Archive items for store/scope, then prune the directory to
cfg.max_files newest. Returns the written path, or None when there was
nothing to archive. Best-effort prune: a prune failure never fails the write.