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