pyslk.chmod

Contents

pyslk.chmod#

pyslk.chmod(gns_path: str | list, mode: str | int, recursive: bool = False) bool | None#

Change the access mode of a resource or namespace

Parameters:
  • gns_path (str or list) – 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

Returns:

True if successful, None if target does not exist, PySlkException if fails

Return type:

bool or None