Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 468c448

Browse files
committed
Added S_IMODE() to strip the file type (S_IFMT) from a mode.
1 parent 36ddc9e commit 468c448

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Lib/stat.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
ST_MTIME = 8
2323
ST_CTIME = 9
2424

25+
def S_IMODE(mode):
26+
return mode%4096
2527
def S_IFMT(mode):
2628
return mode - mode%4096
2729

0 commit comments

Comments
 (0)