Walks up the directory tree starting from folder until filename is found, or until the filesystem root is reached.
folder
filename
The directory to start searching from.
The file name to look for. Defaults to '.env'.
'.env'
The absolute path to the found file, or '' if not found.
''
Walks up the directory tree starting from
folderuntilfilenameis found, or until the filesystem root is reached.