Commit 468c448b authored by Guido van Rossum's avatar Guido van Rossum

Added S_IMODE() to strip the file type (S_IFMT) from a mode.

parent 36ddc9e3
......@@ -22,6 +22,8 @@ ST_ATIME = 7
ST_MTIME = 8
ST_CTIME = 9
def S_IMODE(mode):
return mode%4096
def S_IFMT(mode):
return mode - mode%4096
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment