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
orpath-like
orlist
) – a resource path (str or Path) or multiple resource paths (in a list)search_id (
int
,str
) – id of a searchsearch_query (
str
) – a search queryrecursive (
bool
) – set whether resource should be evaluated recursively or not
- Returns:
dictionary containing the two tape counts
- Return type:
dict