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

Prev:find-file ( path quot: ( ... name -- ... ? ) -- path/f )
Next:find-file-in-directories ( directories quot: ( ... name -- ... ? ) -- path'/f )


Vocabulary
io.directories

Inputs
patha pathname string
quota quotation


Outputs
pathsa sequence of pathname strings


Word description
Recursively finds all files in the input directory matching the predicate quotation, in a breadth-first or depth-first traversal-method.

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

Definition


: find-files ( path quot: ( ... name -- ... ? ) -- paths )
selector [ each-file ] dip ; inline