Function: projectile-dir-files
projectile-dir-files is a byte-compiled function defined in
projectile.el.
Signature
(projectile-dir-files DIRECTORY &optional ROOT)
Documentation
List the files in DIRECTORY and in its sub-directories.
Files are returned as relative paths to DIRECTORY. ROOT names the project whose ignore rules apply, defaulting to DIRECTORY itself - pass it when DIRECTORY is a subdirectory of the project being listed.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile-dir-files (directory &optional root)
"List the files in DIRECTORY and in its sub-directories.
Files are returned as relative paths to DIRECTORY.
ROOT names the project whose ignore rules apply, defaulting to
DIRECTORY itself - pass it when DIRECTORY is a subdirectory of the
project being listed."
(unless (projectile--directory-p directory)
(user-error "Directory %S does not exist" directory))
;; check for a cache hit first if caching is enabled
(let ((files-list (and projectile-enable-caching
(gethash directory projectile-projects-cache))))
;; cache disabled or cache miss
(or files-list
(pcase projectile-indexing-method
('native (projectile-dir-files-native directory root))
;; use external tools to get the project files
('hybrid (let ((vcs (projectile-project-vcs directory)))
(projectile-adjust-files (or root directory) vcs
(projectile-dir-files-alien directory vcs))))
('alien (projectile-dir-files-alien directory))
(_ (user-error "Unsupported indexing method `%S'" projectile-indexing-method))))))