pyslk.iscached_raw#
- pyslk.iscached_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 in HSM cache or not
- 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 gns_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]