pub fn write(path: &Path, catalog: &Catalog) -> Result<()>Expand description
Writes the catalog as a normalised JSON document.
The document is written beside the cache file and renamed over it, so a write cut short leaves the previous catalog rather than half of this one.