Skip to content

Instantly share code, notes, and snippets.

View puik's full-sized avatar

Vahur Puik puik

  • Ajapaik.ee, Sift.pics (Estonian Photographic Heritage Society)
  • Tallinn
View GitHub Profile
c="442"
p=["None","Execute only","Write only","Write and Execute","Read only","Read and Execute","Read and Write","Read Write and Execute"]
def decode(c):
return("User: "+p[int(c[0])]+"\nGroup: "+p[int(c[1])]+"\nOthers: "+p[int(c[2])]+"\n")
decode(c)