From: Peter Ertl Date: 2006-03-22T04:43:19+09:00 Subject: Re: Find.find and files in cwd wow! > --- Urspr�ngliche Nachricht --- > Von: James Edward Gray II > An: ruby-talk@ruby-lang.org (ruby-talk ML) > Betreff: Re: Find.find and files in cwd > Datum: Wed, 22 Mar 2006 04:24:29 +0900 > > On Mar 21, 2006, at 1:18 PM, rtilley wrote: > > > I can use Find.find(Pathname.getwd) to get an array of all file > > paths recursively, but how do I get only the files in the cwd (do > > not recurse into sub-directories)? > > Try: > > Dir["#{Dir.getwd}/*"] > > Hope that helps. > > James Edward Gray II >