Lines Matching refs:stat
13 from stat import S_ISDIR, S_ISLNK, S_ISREG, S_ISSOCK, S_ISBLK, S_ISCHR, S_ISFIFO
30 # EBADF - guard against macOS `stat` throwing EBADF
920 st = self.stat()
922 other_st = other_path.stat()
924 other_st = self.__class__(other_path).stat()
1000 # Ensure we get an exception by calling stat()
1003 p.stat()
1008 def stat(self, *, follow_symlinks=True):
1010 Return the result of the stat() system call on this path, like
1011 os.stat() does.
1013 return os.stat(self, follow_symlinks=follow_symlinks)
1021 return pwd.getpwuid(self.stat().st_uid).pw_name
1032 return grp.getgrgid(self.stat().st_gid).gr_name
1160 Like stat(), except if the path points to a symlink, the symlink's
1163 return self.stat(follow_symlinks=False)
1228 # Convenience functions for querying the stat results
1235 self.stat()
1250 return S_ISDIR(self.stat().st_mode)
1267 return S_ISREG(self.stat().st_mode)
1287 parent_dev = self.parent.stat().st_dev
1291 dev = self.stat().st_dev
1294 ino = self.stat().st_ino
1295 parent_ino = self.parent.stat().st_ino
1318 return S_ISBLK(self.stat().st_mode)
1334 return S_ISCHR(self.stat().st_mode)
1350 return S_ISFIFO(self.stat().st_mode)
1366 return S_ISSOCK(self.stat().st_mode)