pyslk.chown

Contents

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

Returns:

dict of Paths of the modified files ‘PATH: TRUE-IF-OWNER-CORRECT’; None if gns_path does not exist

Return type:

dict or None