Handbook
Glossary
recursive-directory-files ( path -- paths )
Factor handbook
»
Input and output
»
Directory manipulation
»
Searching directories
Next:
recursive-directory-entries ( path -- directory-entries )
Vocabulary
io
.
directories
Inputs
path
a pathname string
Outputs
paths
a
sequence
of pathname strings
Word description
Traverses a directory path recursively and returns a sequence of files, in a breadth-first or depth-first
traversal-method
.
Definition
USING:
kernel
sequences
;
IN:
io.directories
:
recursive-directory-files
( path -- paths )
[
]
collector
[
each-file
]
dip
;