pyslk.is_cached_details#
- pyslk.is_cached_details(resource: str | int | Path | None = None, search_id: str | int | None = None) dict[str, list[pathlib.Path]] #
Check if whether file(s) is/are in HSM cache or not; returns dict with keys ‘cached’ and ‘not_cached’
- Parameters:
resource (
str
orint
orpath-like
) – a resource id or a resource pathsearch_id (
int
orstr
) – id of a search
- Returns:
dictionary with two keys ‘cached’ and ‘not_cached’ which each have a list of files as value
- Return type:
dict[str, list[Path]]