Handbook
Glossary
find-files-in-directories ( directories quot: ( ... name -- ... ? ) -- paths/f )
Factor handbook
»
Input and output
»
Directory manipulation
»
Searching directories
Prev:
find-file-in-directories ( directories quot: ( ... name -- ... ? ) -- path'/f )
Next:
find-files-by-extension ( path extension -- seq )
Vocabulary
io
.
directories
Inputs
directories
a
sequence
of directory paths
quot
a
quotation
Outputs
paths/f
a sequence of pathname strings or
f
Word description
Finds all files in the input directories matching the predicate quotation, in a breadth-first or depth-first
traversal-method
.
See also
find-file
,
find-files
,
find-file-in-directories
Definition
USING:
kernel
sequences
;
IN:
io.directories
:
find-files-in-directories
( directories quot: ( ... name -- ... ? ) -- paths/f )
[
ensure-sequence-of-directories
]
dip
[
find-files
]
curry
map
concat
;
inline