From: David Ishmael Date: 2006-03-22T04:50:01+09:00 Subject: Re: Find.find and files in cwd Nice! -----Original Message----- From: James Edward Gray II [mailto:james@grayproductions.net] Sent: Tuesday, March 21, 2006 2:24 PM To: ruby-talk ML Subject: Re: Find.find and files in cwd 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