pyslk.is_on_tape_raw#
- pyslk.is_on_tape_raw(resource_path: str | Path | None = None, resource_id: str | int | None = None, search_id: str | int | None = None, recursive: bool = False, verbose: bool = False, double_verbose: bool = False, return_type: int = 0) str | int | CompletedProcess #
Get info whether file is stored on a tape or not (independent on whether it is stored in the cache)
- Parameters:
resource_path (str or Path or None) – resource (full path)
resource_id (str or int or None) – a resource id
search_id (int or str or None) – id of a search
recursive (bool) – export metadata from all files in resource_path recursively
verbose (bool) – single verbose mode, Default: False
double_verbose (bool) – double verbose mode, Default: False
return_type (int) – select between 0 (== str output), 1 (== exit code), 2 (subprocess output)
- Returns:
stdout of the slk_helpers call
- Return type:
Union[str, int, subprocess.CompletedProcess]