From: Bulat Ziganshin Date: 2002-09-23T18:42:57+09:00 Subject: Re: Getting a directory tree Hello Bruce, Monday, September 23, 2002, 9:30:07 AM, you wrote: BW> Hal, BW> The following is a performance test (using profile.rb and Linux' 'time') of... BW> My implementation: BW> --snip-- BW> require 'profile' BW> def getdirs root BW> Dir["#{root}/**/*"].select{ |file| test ?d, file and not test ?l, file } BW> end BW> getdirs '/home/iusris/devel' BW> --snip-- BW> which uses the recursive ** Dir glob (of Zsh fame). but i'm (see 9:44 letter) faster :) 60 seconds vs 100 on my win2k box. you use 40 more seconds for "test ?d" which one more time tested inside Dir[] -- Best regards, Bulat mailto:bulatz@integ.ru