From: Dafydd Fontenot Date: 2009-04-15T14:41:47+09:00 Subject: iterating over directories I got this oneliner that isn't producing the output I was expecting (it printing all of the directories in the linux root directory). irb(main):012:0> Dir.new("/").each { |name| puts name if File.directory?(name) } .. . => # Does anyone know what I might be doing incorrectly? -- Posted via http://www.ruby-forum.com/.