Function: projectile-dir-files
projectile-dir-files is a byte-compiled function defined in
projectile.el.
Signature
(projectile-dir-files DIRECTORY)
Documentation
List the files in DIRECTORY and in its sub-directories.
Files are returned as relative paths to DIRECTORY.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260310.858/projectile.el
(defun projectile-dir-files (directory)
"List the files in DIRECTORY and in its sub-directories.
Files are returned as relative paths to DIRECTORY."
(unless (projectile--directory-p directory)
(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
(let ((vcs (projectile-project-vcs directory)))
(pcase projectile-indexing-method
('native (projectile-dir-files-native directory))
;; use external tools to get the project files
('hybrid (projectile-adjust-files directory vcs (projectile-dir-files-alien directory)))
('alien (projectile-dir-files-alien directory))
(_ (user-error "Unsupported indexing method `%S'" projectile-indexing-method)))))))