From: rbr Date: 2006-10-11T02:00:22+09:00 Subject: Re: (NEWBIE) Reading folders from a directory into an array Thank you! That is great! rbr eden li wrote: > Dir['/path/*'].select { |f| File.directory? f }.each do |directory| > # do your thing > end > > Read more at http://www.rubycentral.com/book/ref_c_dir.html