find-file ( path quot: ( ... name -- ... ? ) -- path/f )
Factor handbook » Input and output » Directory manipulation » Searching directories

Prev:each-directory-entry ( path quot: ( ... entry -- ... ) -- )
Next:find-files ( path quot: ( ... name -- ... ? ) -- paths )


Vocabulary
io.directories

Inputs
patha pathname string
quota quotation


Outputs
path/fpathname string or f


Word description
Finds the first file in the input directory matching the predicate quotation, in a breadth-first or depth-first traversal-method.

See also
find-files, find-file-in-directories, find-files-in-directories

Definition