From: Newbie Date: 2006-09-22T02:10:13+09:00 Subject: Re: How to Traverse a Directory MonkeeSage wrote: >> next if file[0] == ?. > > This will probably work for most cases in windows (though not always), > but it definitely a bad idea for any other OS (because filenames can > start with a . to mean they should be hidden in normal listing modes). > What I usually use is -- next if ['.', '..'].include? file -- which > checks if the full filename == '.' or '..' Good point - perhaps http://www.ruby-doc.org/core/classes/Find.html should be fixed ;-)