mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
Added S_IMODE() to strip the file type (S_IFMT) from a mode.
This commit is contained in:
parent
36ddc9e318
commit
468c448bcc
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue