Lines Matching refs:stat
7 import stat
19 os.stat(path)
30 st = os.stat(path)
33 return stat.S_ISREG(st.st_mode)
42 st = os.stat(s)
45 return stat.S_ISDIR(st.st_mode)
49 """Return the size of a file, reported by os.stat()."""
50 return os.stat(filename).st_size
54 """Return the last modification time of a file, reported by os.stat()."""
55 return os.stat(filename).st_mtime
59 """Return the last access time of a file, reported by os.stat()."""
60 return os.stat(filename).st_atime
64 """Return the metadata change time of a file, reported by os.stat()."""
65 return os.stat(filename).st_ctime
85 # Are two stat buffers (obtained from stat, fstat or lstat)
88 """Test whether two stat buffers reference the same file"""
98 raises an exception if an os.stat() call on either pathname fails.
100 s1 = os.stat(f1)
101 s2 = os.stat(f2)