chickadee » directory-utils » directory-fold

(directory-fold FUNCTION IDENTITY DIRECTORY [#:dotfiles? DOTFILES?]) -> *procedure

Invokes FUNCTION on each filename in the DIRECTORY and the recursive value from IDENTITY. Returns the final value.

FUNCTION
(filename * -> *).
DOTFILES
boolean ; include files with a "." prefix ; Default #f.

Note that only the filename is passed and not the complete pathname. The "." and ".." filenames are not supplied no matter the DOTFILES? setting.

On a Windows platform hidden files have a hidden attribute so this routine is rather *nix centric.