class_docstr: A trigger that fires exactly once after it finds the requested file or folder.
  
  :param filepath: File or folder name (relative to the base path set within the connection), can
      be a glob.
  :param recursive: when set to ``True``, enables recursive directory matching behavior of
      ``**`` in glob filepath parameter. Defaults to ``False``.
class_docstr_tok: ["A","trigger","that","fires","exactly","once","after","it","finds","the","requested","file","or","folder",".",":","param","filepath",":","File","or","folder","name","(","relative","to","the","base","path","set","within","the","connection",")",",","can","be","a","glob",".",":","param","recursive",":","when","set","to","``","True","``",",","enables","recursive","directory","matching","behavior","of","``","*","*","``","in","glob","filepath","parameter",".","Defaults","to","``","False","``","."]
docstr: Serialize FileTrigger arguments and classpath.
docstr_tok: ["Serialize","FileTrigger","arguments","and","classpath","."]
code: def serialize(self) -> tuple[str, dict[str, Any]]:
      """Serialize FileTrigger arguments and classpath."""
      return (
          "airflow.triggers.file.FileTrigger",
          {
              "filepath": self.filepath,
              "recursive": self.recursive,
              "poll_interval": self.poll_interval,
          },
      )
  
file_path: airflow/airflow/triggers/file.py
imports: from __future__ import annotations
  import asyncio
  import datetime
  import os
  import typing
  from glob import glob
  from typing import Any
  from airflow.triggers.base import BaseTrigger, TriggerEvent
label_desc: Use image node_id 2 for calling the FileTrigger obj's underlying member method code with example usage: obj.serialize() and returns: str,  dict