ADK for TypeScript: API Reference
    Preparing search index...

    Function walkToRootUntilFound

    • Walks up the directory tree starting from folder until filename is found, or until the filesystem root is reached.

      Parameters

      • folder: string

        The directory to start searching from.

      • filename: string = '.env'

        The file name to look for. Defaults to '.env'.

      Returns string

      The absolute path to the found file, or '' if not found.