mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Added S_IMODE() to strip the file type (S_IFMT) from a mode.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user