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
orlist
) – namespace or file (full GNS path); can be file listmode (
str
orint
) – 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
orNone