pyslk.chown#
- pyslk.chown(gns_path: [<class 'str'>, <class 'pathlib.Path'>], owner: str | int, recursive: bool = False) dict | None #
Change the owner of a resource or namespace
- Parameters:
gns_path (
str
orPath
) – namespace or file (full GNS path)owner (
str
orint
) – new owner of a file (username or uid)recursive (
bool
) – use the -R flag to delete recursively, Default: False
- Returns:
dict of Paths of the modified files ‘PATH: TRUE-IF-OWNER-CORRECT’; None if gns_path does not exist
- Return type:
dict
orNone