/// Removes entire contents of the cache, including temporary files, the entry
/// index, and all content data.
Removes entire contents of the cache, including temporary files, the entry
index, and all content data.
Removes entire contents of the cache including temporary files the entry index and all content data .
pub async fn all<P: AsRef<Path>>(cache: P) -> Result<(), Error> {
    for entry in cache.as_ref().read_dir()? {
        if let Ok(entry) = entry {
            afs::remove_dir_all(entry.path()).await?;
        }
    }
    Ok(())
}
pub async fn all < P : AsRef < Path > > ( cache : P ) -> Result < ( ) , Error > { for entry in cache . as_ref ( ) . read_dir ( ) ? { if let Ok ( entry ) = entry { afs :: remove_dir_all ( entry . path ( ) ) . await ? ; } } Ok ( ( ) ) }
Removes entire contents of the cache, including temporary files, the entry
index, and all content data.
Removes entire contents of the cache including temporary files the entry index and all content data .
cache
P