Searched refs:ST_MODE (Results 1 – 15 of 15) sorted by relevance
11 from stat import ST_MODE52 mode = ((os.stat(file)[ST_MODE]) | 0o555) & 0o7777
6 from stat import ST_MODE145 oldmode = os.stat(file)[ST_MODE] & 0o7777
34 if not S_ISREG(st[ST_MODE]):37 mode = S_IMODE(st[ST_MODE])
19 mode = S_IMODE(st[ST_MODE])32 mode = S_IMODE(st[ST_MODE])
157 os.chmod(tempname, statbuf[ST_MODE] & 0o7777)
178 os.chmod(tempname, statbuf[ST_MODE] & 0o7777)
101 from stat import ST_ATIME, ST_MTIME, ST_MODE, S_IMODE160 os.chmod(dst, S_IMODE(st[ST_MODE]))
8 ST_MODE = 0 variable
13 ifdef ST_MODE
12 ifdef ST_MODE
14 ifdef ST_MODE
147 .. data:: ST_MODE207 The variables below define the flags used in the :data:`ST_MODE` field.
16 ifdef ST_MODE
682 mode = os.stat(path)[stat.ST_MODE]
1502 The module supports new :mod:`~stat.ST_MODE` flags, :mod:`~stat.S_IFDOOR`,