class_docstr: The :class:`.TreeEntry` class contains information about a file-system
  entry.
docstr: Initialize the :class:`.TreeEntry` instance.
  
  *name* (:class:`str`) is the base name of the entry.
  
  *path* (:class:`str`) is the relative path of the entry.
  
  *lstat* (:class:`os.stat_result`) is the stat result of the direct
  entry.
  
  *stat* (:class:`os.stat_result`) is the stat result of the entry,
  potentially linked.
docstr_tok: ["Initialize","the",":","class",":","`",".TreeEntry","`","instance",".","*","name","*","(",":","class",":","`","str","`",")","is","the","base","name","of","the","entry",".","*","path","*","(",":","class",":","`","str","`",")","is","the","relative","path","of","the","entry",".","*","lstat","*","(",":","class",":","`","os.stat_result","`",")","is","the","stat","result","of","the","direct","entry",".","*","stat","*","(",":","class",":","`","os.stat_result","`",")","is","the","stat","result","of","the","entry",",","potentially","linked","."]
code: def __init__(
      self,
      name: str,
      path: str,
      lstat: os.stat_result,
      stat: os.stat_result,
  ) -> None:
      """
      Initialize the :class:`.TreeEntry` instance.
  
      *name* (:class:`str`) is the base name of the entry.
  
      *path* (:class:`str`) is the relative path of the entry.
  
      *lstat* (:class:`os.stat_result`) is the stat result of the direct
      entry.
  
      *stat* (:class:`os.stat_result`) is the stat result of the entry,
      potentially linked.
      """
  
      self._lstat: os.stat_result = lstat
      """
  		*_lstat* (:class:`os.stat_result`) is the stat result of the direct
  		entry.
  		"""
  
      self.name: str = name
      """
  		*name* (:class:`str`) is the base name of the entry.
  		"""
  
      self.path: str = path
      """
  		*path* (:class:`str`) is the path of the entry.
  		"""
  
      self._stat: os.stat_result = stat
      """
  		*_stat* (:class:`os.stat_result`) is the stat result of the linked
  		entry.
  		"""
  
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 1 to create a new TreeEntry object from inherited base classes: object with example: obj = TreeEntry(name, path, lstat, stat)