Return the portion of the file's mode that describes the file type.
(mode)
| 25 | return mode & 0o7777 |
| 26 | |
| 27 | def S_IFMT(mode): |
| 28 | """Return the portion of the file's mode that describes the |
| 29 | file type. |
| 30 | """ |
| 31 | return mode & 0o170000 |
| 32 | |
| 33 | # Constants used as S_IFMT() for various file types |
| 34 | # (not all are implemented on all systems) |
no outgoing calls
no test coverage detected
searching dependent graphs…