From: Timothy Hunter Date: 2006-06-19T05:22:07+09:00 Subject: Re: Ruby in the sky with diamonds Gareth Clews wrote: > 3. An easier one methinks, how do I get irb to put what the contents of > a folder are and whether they are folders or files? (again kind of like > ls in bash) > Easy way: system("ls"). Harder way, use the Dir class or the Find module. Dir is one of the core classes. Find isn't, but it is part of the standard library so all you have to do to use it is execute require 'find' in irb before using any of the Find methods. Both Dir and Find are documented here: http://www.ruby-doc.org/