pyslk.count_tapes

Contents

pyslk.count_tapes#

pyslk.count_tapes(resource_path: str | list | Path | None = None, search_id: str | int | None = None, search_query: str | None = None, recursive: bool = False) dict[str, int]#

Count number of tapes onto which provided files are stored; distinguishes between multi-tape and single-tape files

Parameters:
  • resource_path (str or path-like or list) – a resource path (str or Path) or multiple resource paths (in a list)

  • search_id (int, str) – id of a search

  • search_query (str) – a search query

  • recursive (bool) – set whether resource should be evaluated recursively or not

Returns:

dictionary containing the two tape counts

Return type:

dict