martax

Function access()

fun martax.access(value: String): Int

Get numeric value for given POSIX access flags in a string format. String length must be exactly 9 and contain only characters ‘r’, ‘w’, ‘x’ or ‘-’. 0777 is rwxrwxrwx, 0 is ---------.

Example:

local value = martax.access("rwxrw-rw-")