pyslk.exists_raw

Contents

pyslk.exists_raw#

pyslk.exists_raw(gns_path: str | Path, return_type: int = 0) str | int | CompletedProcess#

Check if resource exists

Parameters:
  • gns_path (str) – namespace or resource

  • 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]