From: Humphrey Alba Date: 2009-04-06T13:11:11+09:00 Subject: Re: what's wrong with these? Michael Malone wrote: > Humphrey Alba wrote: >> Version: ruby 1.9.1p0 (2009-01-30 revision 21907) [i686-linux] >> Is there something wrong with this version? >> >> 1: >> Dir.foreach("/tmp") {|f| puts f if File.directory?(f) } >> -- it just prints '.' and '..' >> > > Have you checked to see if you do have directories inside /tmp other > than '.' and '..'? Yes, there are directories inside /tmp -- Posted via http://www.ruby-forum.com/.