Neil Conway wrote: > > Hi all, > > I'm still a Ruby-newbie, so if this is silly, just tell me. > > I'm using Dir#each to recurse through the files in a directory. > To me, the following code is fairly natural: > ... > > Does anyone else think this would be a good idea? Or is there > a better way to solve my problem? > Is this better? require 'find' Find.find("/some/path") {|f| unless f=="." array.push(f) else Find.prune end } Guy N. Hurst P.S. See page 450 in the pickaxe book -- HurstLinks Web Development http://www.hurstlinks.com/ Norfolk, VA 23510 (757)623-9688 FAX 623-0433 PHP/MySQL - Ruby/Perl - HTML/Javascript