On Sunday 16 July 2006 02:00, Mike Durham wrote:
> transfire / gmail.com wrote:
[...]
> > Try Dir['**/*'], it only applies this way.
> >
> > T.
>
> using "**/*" doesn't seem to get all dirs, it misses the hidden
> ones do you know the logic behind "**/*" or "*/*" ?

Use:
  Dir.glob("**/*", File::FNM_DOTMATCH)

Dir[patttern] is just a shortcut for Dir.glob(pattern, 0).
Just read "ri Dir.[]" and "ri Dir.glob".

HTH,
  Stefan