each-file ( path bfs? quot -- )
Searching directories
Prev:recursive-directory-entries ( path bfs? -- directory-entries )
Next:find-file ( path bfs? quot -- path/f )


Vocabulary
io.directories.search

Inputs and outputs
patha pathname string
bfs?a boolean, breadth-first or depth-first
quota quotation


Word description
Performs a directory traversal, breadth-first or depth-first, and calls the quotation on the full pathname of each file.

Examples
USING: sequences io.directories.search ; "resource:misc" t [ . ] each-file
! Recursive directory listing prints here


Definition
USING: io.directories.search.private kernel ;

IN: io.directories.search

: each-file ( path bfs? quot -- )
setup-traversal iterate-directory drop ; inline