Function: projectile-verify-file

projectile-verify-file is a byte-compiled function defined in projectile.el.

Signature

(projectile-verify-file FILE &optional DIR ENTRY-SET)

Documentation

Check whether FILE exists in the current project.

When DIR is specified it checks DIR's project, otherwise it acts on the current project.

ENTRY-SET, when non-nil, is a hash set of the project root's immediate entries. A plain-name FILE (one sitting directly in the root) is then answered by membership in ENTRY-SET instead of a filesystem stat; a FILE carrying a path separator can't be and falls back to projectile-file-exists-p.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile-verify-file (file &optional dir entry-set)
  "Check whether FILE exists in the current project.
When DIR is specified it checks DIR's project, otherwise
it acts on the current project.

ENTRY-SET, when non-nil, is a hash set of the project root's immediate
entries.  A plain-name FILE (one sitting directly in the root) is then
answered by membership in ENTRY-SET instead of a filesystem stat; a FILE
carrying a path separator can't be and falls back to
`projectile-file-exists-p'."
  (if (and entry-set (not (string-match-p "/" file)))
      (and (gethash file entry-set) t)
    (projectile-file-exists-p (projectile-expand-root file dir))))