From: Rajarshi Chakravarty Date: 2010-08-23T15:40:31+09:00 Subject: directory listing without . and .. Hi, How can I get an array of all legitimate sub directories in the current directory? path = "D:/Traffic" Dir.chdir(path) This gives 2 extra entries "." and ".." Dir.open(stationDir).entries.reject{|f| File.file?(f)} Please help -- Posted via http://www.ruby-forum.com/.