pyslk.get_resource_permissions

pyslk.get_resource_permissions#

pyslk.get_resource_permissions(resource: str | int | Path | None = None, as_octal_number: bool = False) str | bool | None#

Get path for a resource id

Parameters:
  • resource (str or int or path-like) – a resource id or a resource path

  • as_octal_number (bool) – Do not return the permissions as combination of x/w/r/- but as three digit octal number

Returns:

permissions string; False if resource does not exist

Return type:

str or bool or None