Function: projectile-root-top-down-recurring
projectile-root-top-down-recurring is a byte-compiled function defined
in projectile.el.
Signature
(projectile-root-top-down-recurring DIR &optional LIST)
Documentation
Identify a project root in DIR by recurring top-down search for files in LIST.
If LIST is nil, use projectile-project-root-files-top-down-recurring
instead. Return the last (bottommost) matched directory in the
topmost sequence of matched directories. Nil otherwise.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260310.858/projectile.el
(defun projectile-root-top-down-recurring (dir &optional list)
"Identify a project root in DIR by recurring top-down search for files in LIST.
If LIST is nil, use `projectile-project-root-files-top-down-recurring'
instead. Return the last (bottommost) matched directory in the
topmost sequence of matched directories. Nil otherwise."
(seq-some
(lambda (f)
(projectile-locate-dominating-file
dir
(lambda (dir)
(and (projectile-file-exists-p (projectile-expand-file-name-wildcard f dir))
(or (string-match locate-dominating-stop-dir-regexp (projectile-parent dir))
(not (projectile-file-exists-p (projectile-expand-file-name-wildcard f (projectile-parent dir)))))))))
(or list projectile-project-root-files-top-down-recurring)))