pyslk.is_cached_details

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 or int or path-like) – a resource id or a resource path

  • search_id (int or str) – 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]]