pub fn cache_status(path: &Path) -> Result<CacheStatus>Expand description
Read one cache file’s status without materializing its index.
The file is identified by its contents, because the caller named it: only a name fdu
gives its own staging files and sidecars is read as one, and even then the magic
decides. A symbolic link at path is reported unrecognized rather than followed.
One path is all this sees, so a sidecar is judged by its own name and magic:
LeftoverKind::OrphanedContent here says the file is a sidecar, not that no snapshot
claims it. Whether one does is a fact about the directory, which list_caches
answers and a clear asks again at the moment of removal.