pyslk.owner_raw#
- pyslk.owner_raw(gns_path: str | Path, owner: str | int, recursive: bool = False, return_type: int = 0) str | int | CompletedProcess #
Change the owner of a resource or namespace
- Parameters:
gns_path (str or Path) – namespace or file (full GNS path)
owner (str or int) – new owner of a file (username or uid)
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]