class_docstr: The :class:`.TreeEntry` class contains information about a file-system
  entry.
docstr: Get the cached stat result for the entry.
  
  *follow_links* (:class:`bool` or :data:`None`) is whether to follow
  symbolic links. If this is :data:`True`, the stat result of the
  linked file will be returned. Default is :data:`None` for :data:`True`.
  
  Returns that stat result (:class:`os.stat_result`).
docstr_tok: ["Get","the","cached","stat","result","for","the","entry",".","*","follow_links","*","(",":","class",":","`","bool","`","or",":","data",":","`","None","`",")","is","whether","to","follow","symbolic","links",".","If","this","is",":","data",":","`","True","`",",","the","stat","result","of","the","linked","file","will","be","returned",".","Default","is",":","data",":","`","None","`","for",":","data",":","`","True","`",".","Returns","that","stat","result","(",":","class",":","`","os.stat_result","`",")","."]
code: def stat(self, follow_links: Optional[bool] = None) -> os.stat_result:
      """
      Get the cached stat result for the entry.
  
      *follow_links* (:class:`bool` or :data:`None`) is whether to follow
      symbolic links. If this is :data:`True`, the stat result of the
      linked file will be returned. Default is :data:`None` for :data:`True`.
  
      Returns that stat result (:class:`os.stat_result`).
      """
      if follow_links is None:
          follow_links = True
  
      return self._stat if follow_links else self._lstat
  
imports: import os
  import os.path
  import pathlib
  import posixpath
  import stat
  import sys
  import warnings
  from collections.abc import Collection, Iterable
  from dataclasses import dataclass
  from os import PathLike
  from typing import Any, AnyStr, Callable, Collection, Dict, Generic, Iterable, Iterator, List, Optional, Sequence, Set, Tuple, TypeVar, Union
  from .pattern import Pattern
label_desc: Use image node_id 5 for calling the TreeEntry obj's underlying member method code with example usage: obj.stat(follow_links) and returns: unknown