Function: projectile-root-top-down
projectile-root-top-down is a byte-compiled function defined in
projectile.el.
Signature
(projectile-root-top-down DIR &optional LIST)
Documentation
Identify a project root in DIR by top-down search for files in LIST.
If LIST is nil, use projectile-project-root-files instead.
Return the first (topmost) matched directory or nil if not found.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile-root-top-down (dir &optional list)
"Identify a project root in DIR by top-down search for files in LIST.
If LIST is nil, use `projectile-project-root-files' instead.
Return the first (topmost) matched directory or nil if not found."
(let ((markers (or list projectile-project-root-files)))
(projectile-locate-dominating-file-top-down
dir
;; A root file has to be a file, not a directory - `src' being a
;; marker of some project type mustn't make every `src' a root.
(lambda (dir) (projectile--directory-marker dir markers 'files-only)))))