Skip to content

parser

perm_format(permString)
  • Returns a list of permissions from a permission code.

Parameters

  • permString (string): The permission code.

Return

  • (list<string>): A list of permissions.

Example

print perm_format("777")
print perm_format("644")

Result:

["o+rwx", "g+rwx", "u+rwx"]
["o+r", "o-wx", "g+r", "g-wx", "u+rw", "u-x"]