pyslk.group_raw

Contents

pyslk.group_raw#

pyslk.group_raw(gns_path: str | Path, group: str | int, recursive: bool = False, return_type: int = 0) str | int | CompletedProcess#

Change the group of a resource or namespace

Parameters:
  • gns_path (str or Path) – namespace or file (full GNS path)

  • group (str or int) – new group of a file (group name or gid)

  • recursive (bool) – use the -R flag to delete recursively, 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]