iter_all_entry_dirs#

scikitplot.cython.iter_all_entry_dirs(cache_root)[source]#

Return all cache entry directories whose name is a valid cache key.

Parameters:
cache_rootstr or pathlib.Path or None

Cache root.

Returns:
list[pathlib.Path]

Entry directory paths, sorted by name for deterministic ordering.

Parameters:

cache_root (str | Path | None)

Return type:

list[Path]

Notes

A list is returned rather than a generator so that callers can iterate the result multiple times safely (e.g., once for stats and once for GC). A generator would be silently exhausted on the second pass, producing an empty sequence with no error.