From: ChrisH Date: 2006-03-22T04:28:51+09:00 Subject: Re: Find.find and files in cwd 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)? Check out Dir (http://ruby-doc.org/core/classes/Dir.html) Dir.pwd #=> current directory Dir['*'] #=> contents of current directory (files and directories) Cheers