Lines Matching defs:stat
36 import stat
124 if m & (stat.S_ISUID | stat.S_ISGID):
125 if m & (stat.S_IRGRP | stat.S_IROTH):
129 if "o" in modechecks and o != "root" and ((m & stat.S_ISUID) == 0):
130 mu = (m & stat.S_IRWXU) >> 6
131 mg = (m & stat.S_IRWXG) >> 3
132 mo = m & stat.S_IRWXO
146 uwx = stat.S_IWUSR | stat.S_IXUSR
152 m & (stat.S_IWGRP | stat.S_IWOTH) != 0 and
153 m & stat.S_ISVTX == 0):
331 """This means that the stat.S_IFMT returned something we don't
364 # Per stat.py, these cases are mutually exclusive.
366 if stat.S_ISREG(mode):
368 elif stat.S_ISDIR(mode):
370 elif stat.S_ISLNK(mode):
376 if not stat.S_ISLNK(mode):
377 self.mode = "%04o" % stat.S_IMODE(mode)
472 sys.stderr.write("Warning: unable to stat %s: %s\n" %
523 # constructor, because there's nothing to actually stat().
670 stat.S_ISREG(os.lstat(os.path.join(mdir, mfile)).st_mode)):