each-file ( ... path quot: ( ... name -- ... ) -- ... )
Factor handbook » Input and output » Directory manipulation » Searching directories

Prev:recursive-directory-entries ( path -- directory-entries )
Next:each-directory-entry ( path quot: ( ... entry -- ... ) -- )


Vocabulary
io.directories

Inputs
patha pathname string
quota quotation


Outputs
None

Word description
Traverses a directory path recursively and calls the quotation on the full pathname of each file, in a breadth-first or depth-first traversal-method.

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


Definition