Lines Matching refs:stat
4 import stat
65 st_mode = os.stat(fname).st_mode
70 fmt = getattr(stat, "S_IF" + name.lstrip("F"))
71 self.assertEqual(stat.S_IFMT(mode), fmt)
75 func = getattr(stat, funcname, None)
92 self.assertEqual(stat.S_IMODE(st_mode),
93 stat.S_IRWXU)
98 self.assertEqual(stat.S_IMODE(st_mode),
99 stat.S_IRWXG)
104 self.assertEqual(stat.S_IMODE(st_mode),
105 stat.S_IRWXO)
110 self.assertEqual(stat.S_IMODE(st_mode), 0o444)
115 self.assertEqual(stat.S_IFMT(st_mode),
116 stat.S_IFREG)
154 modvalue = getattr(stat, key)
157 modvalue = getattr(stat, key)
160 modvalue = getattr(stat, key)
163 modvalue = getattr(stat, key)
166 func = getattr(stat, key)