Commit 37b5d42b authored by Guido van Rossum's avatar Guido van Rossum

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

parent bc440a1e
...@@ -22,6 +22,8 @@ ST_ATIME = 7 ...@@ -22,6 +22,8 @@ ST_ATIME = 7
ST_MTIME = 8 ST_MTIME = 8
ST_CTIME = 9 ST_CTIME = 9
def S_IMODE(mode):
return mode%4096
def S_IFMT(mode): def S_IFMT(mode):
return mode - mode%4096 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