Thanks everyone. All great samples. I'm playing around now. Thanks again! Kyle Heon kheon / comcast.net -----Original Message----- From: Eric Hodel [mailto:drbrain / segment7.net] Sent: Monday, July 25, 2005 7:33 PM To: ruby-talk ML Subject: Re: Script to walk a directory tree On 25 Jul 2005, at 16:22, Kyle Heon wrote: > Can anyone point me in the direction of how to walk a directory tree > recursively? > > I'm not having much luck finding code samples via Google. require 'find' Find.find('/your/path') do |f| # if you want to skip all dirs next if File.directory? f puts "at: #{f}" end -- Eric Hodel - drbrain / segment7.net - http://segment7.net FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04