chickadee » pathfinder » pf:regular-file?

pf:regular-file? DIRENT FILENAMEprocedure

Pathfinder test which selects regular files, to be passed to a pathfinder matcher. This is the default filter, so specifying it is optional.

;; Find a regular file named "ls" in the search path.
(path-find p "ls" pf:exact pf:regular-file?)