class_docstr: Load templates from a directory in the file system.
  
  The path can be relative or absolute. Relative paths are relative to
  the current working directory.
  
  .. code-block:: python
  
      loader = FileSystemLoader("templates")
  
  A list of paths can be given. The directories will be searched in
  order, stopping at the first matching template.
  
  .. code-block:: python
  
      loader = FileSystemLoader(["/override/templates", "/default/templates"])
  
  :param searchpath: A path, or list of paths, to the directory that
      contains the templates.
  :param encoding: Use this encoding to read the text from template
      files.
  :param followlinks: Follow symbolic links in the path.
  
  .. versionchanged:: 2.8
      Added the ``followlinks`` parameter.
class_docstr_tok: ["Load","templates","from","a","directory","in","the","file","system",".","The","path","can","be","relative","or","absolute",".","Relative","paths","are","relative","to","the","current","working","directory",".","..","code-block",":",":","python","loader","=","FileSystemLoader","(","``","templates","''",")","A","list","of","paths","can","be","given",".","The","directories","will","be","searched","in","order",",","stopping","at","the","first","matching","template",".","..","code-block",":",":","python","loader","=","FileSystemLoader","(","[","``","\/override\/templates","''",",","``","\/default\/templates","''","]",")",":","param","searchpath",":","A","path",",","or","list","of","paths",",","to","the","directory","that","contains","the","templates",".",":","param","encoding",":","Use","this","encoding","to","read","the","text","from","template","files",".",":","param","followlinks",":","Follow","symbolic","links","in","the","path",".","..","versionchanged",":",":","2.8","Added","the","``","followlinks","``","parameter","."]
code: def __init__(
      self,
      searchpath: t.Union[
          str, os.PathLike, t.Sequence[t.Union[str, os.PathLike]]
      ],
      encoding: str = "utf-8",
      followlinks: bool = False,
  ) -> None:
      if not isinstance(searchpath, abc.Iterable) or isinstance(
          searchpath, str
      ):
          searchpath = [searchpath]
  
      self.searchpath = [os.fspath(p) for p in searchpath]
      self.encoding = encoding
      self.followlinks = followlinks
  
imports: import importlib.util
  import os
  import posixpath
  import sys
  import pkgutil
  import typing
  import weakref
  import zipimport
  from collections import abc
  from hashlib import sha1
  from importlib import import_module
  from types import ModuleType
  from .exceptions import TemplateNotFound
  from .utils import internalcode
  from .utils import open_if_exists
  import __res
label_desc: Use image node_id 1 to create a new FileSystemLoader object from inherited base classes: BaseLoader with example: obj = FileSystemLoader(searchpath, encoding, followlinks)