MCPcopy Index your code
hub / github.com/python/cpython / S_IMODE

Function S_IMODE

Lib/stat.py:21–25  ·  view source on GitHub ↗

Return the portion of the file's mode that can be set by os.chmod().

(mode)

Source from the content-addressed store, hash-verified

19# Extract bits from the mode
20
21def S_IMODE(mode):
22 """Return the portion of the file's mode that can be set by
23 os.chmod().
24 """
25 return mode & 0o7777
26
27def S_IFMT(mode):
28 """Return the portion of the file's mode that describes the

Callers 1

_posix_permissionsMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…