pyslk.chmod_raw#
- pyslk.chmod_raw(gns_path: str | list | Path, mode: str | int, recursive: bool = False, return_type: int = 0) str | int | CompletedProcess #
Change the access mode of a resource or namespace
- Parameters:
gns_path (str or list or Path) – namespace or file (full GNS path); can be file list
mode (str or int) – new mode/permissions of a file (as known from bash’s chmod)
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]