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)?

Dir provides several ways to do this:

http://www.ruby-doc.org/core/classes/Dir.html