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
orint
orpath-like
) – a resource id or a resource pathas_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
orbool
orNone