chickadee » directory-utils » directory-foldl

directory-foldl DIRECTORY FUNCTION SEED #!optional SHOW-DOTFILES?procedure

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

FUNCTION
(* filename -> *).
SHOW-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 SHOW-DOTFILES? setting.

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