From: Gregory Brown Date: 2009-02-05T16:59:38+09:00 Subject: Re: Return actual files only not directories, using Pathname.. On Thu, Feb 5, 2009 at 1:50 AM, Brian Wallace wrote: > Does anyone have any tips on how I could use Pathname to return files only, > and not directories? Use Pathname.glob >> require "pathname" => true >> Pathname.glob("lib/**/*.rb") => [#, #, #, #, #, #, #, #, #, #, #, #, #, #, #, #, #, #, #, #, #, #, #, #, #, #, #, #, #] -- Technical Blaag at: http://blog.majesticseacreature.com Non-tech stuff at: http://metametta.blogspot.com "Ruby Best Practices" Book now in O'Reilly Roughcuts: http://rubybestpractices.com