Function: projectile-ignored-directory-p
projectile-ignored-directory-p is a byte-compiled function defined in
projectile.el.
Signature
(projectile-ignored-directory-p DIRECTORY &optional IGNORED-DIRECTORIES LOCAL-DIRECTORY GLOBALLY-IGNORED-DIRECTORIES)
Documentation
Check if DIRECTORY should be ignored.
Pre-computed lists of IGNORED-DIRECTORIES and GLOBALLY-IGNORED-DIRECTORIES and the LOCAL-DIRECTORY name may optionally be provided.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260310.858/projectile.el
(defun projectile-ignored-directory-p
(directory &optional ignored-directories local-directory globally-ignored-directories)
"Check if DIRECTORY should be ignored.
Pre-computed lists of IGNORED-DIRECTORIES and GLOBALLY-IGNORED-DIRECTORIES
and the LOCAL-DIRECTORY name may optionally be provided."
(let ((ignored-directories (or ignored-directories (projectile-ignored-directories)))
(globally-ignored-directories (or globally-ignored-directories (projectile-globally-ignored-directory-names)))
(local-directory (or local-directory (file-name-nondirectory (directory-file-name directory)))))
(or (member directory ignored-directories)
(seq-some
(lambda (name)
(string-match-p name directory))
projectile-global-ignore-file-patterns)
(member local-directory globally-ignored-directories))))