From: Mmcolli00 Mom Date: 2009-07-21T05:05:18+09:00 Subject: Dir.entries showing . and .. , how come? Why is it that there are '.' and '..' in my output? I want to create a list of all the files in this directory without showing the . and .. at the top of the list. What do you do for this? Thanks, M #snippet myfolder = "c:/myfolder" Dir.entries(myfolder).each do |filename| puts filename end #end snippet #Shows this as output . .. Filename1.exe Filename2.html Filename3.txt -- Posted via http://www.ruby-forum.com/.