1
2
3
4
5
6
7
8
9
//! Functions for iterating over the cache.
use std::path::Path;

use crate::index;

/// Returns a synchronous iterator that lists all cache index entries.
pub fn all_sync<P: AsRef<Path>>(cache: P) -> impl Iterator {
    index::ls(cache.as_ref())
}