recursive-directory-entries ( path bfs? -- directory-entries )
Searching directories
Prev:recursive-directory-files ( path bfs? -- paths )
Next:each-file ( path bfs? quot -- )


Vocabulary
io.directories.search

Inputs and outputs
patha pathname string
bfs?a boolean, breadth-first or depth-first
directory-entriesa sequence of directory-entries


Word description
Traverses a directory path recursively and returns a sequence of directory-entries in a breadth-first or depth-first manner.

Definition
USING: kernel sequences ;

IN: io.directories.search

: recursive-directory-entries
( path bfs? -- directory-entries )
[ ] collector [ each-directory-entry ] dip ; inline