On Saturday, August 16, 2003, at 03:16 PM, Jim Bob wrote:

> I think it'd be useful (and worthwhile) to have a Dir.recurse method.
> This method would take two optional arguments and a mandatory block. 
> The
> first argument, if given, is the directory to start recursing from. If
> it is omitted, then recursion starts from the current directory. The
> second argument, if given, specifies a maximum depth to recurse to. If
> omitted, recursion would go as deep as possible.
> [snip]

You might check out find (in the standard distribution) and find2 
(available through the RAA), which seem to have some of the 
functionality you are interested in.

Regards,

Mark