class_docstr: The :class:`.TreeEntry` class contains information about a file-system
  entry.
class_docstr_tok: ["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=None):
      """
      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 posixpath
  import stat
  from .compat import Collection, Iterable, string_types, unicode
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