Function: projectile-root-bottom-up

projectile-root-bottom-up is a byte-compiled function defined in projectile.el.

Signature

(projectile-root-bottom-up DIR &optional LIST)

Documentation

Identify a project root in DIR by bottom-up search for files in LIST.

If LIST is nil, use projectile-project-root-files-bottom-up instead. Return the first (bottommost) matched directory or nil if not found.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260310.858/projectile.el
(defun projectile-root-bottom-up (dir &optional list)
  "Identify a project root in DIR by bottom-up search for files in LIST.
If LIST is nil, use `projectile-project-root-files-bottom-up' instead.
Return the first (bottommost) matched directory or nil if not found."
  (projectile-locate-dominating-file
   dir
   (lambda (directory)
     (let ((files (mapcar (lambda (file) (expand-file-name file directory))
                          (or list projectile-project-root-files-bottom-up))))
       (seq-some (lambda (file) (and file (file-exists-p file))) files)))))