Created
September 21, 2016 15:14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment