pyslk.tape_exists_raw#
- pyslk.tape_exists_raw(tape_id: int | str | None = None, tape_barcode: str | None = None, return_type: int = 0) str | int | CompletedProcess #
Check if tape exists
- Parameters:
tape_id (int or str or None) – id of a tape in the tape library
tape_barcode (str or None) – barcode of a tape in the tape library
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]