From: Pit Capitain Date: 2006-03-22T16:15:46+09:00 Subject: Re: Find.find and files in cwd rtilley schrieb: > Dir.entries(Pathname.getwd).each do |entry| > if File.file?(entry) > puts entry > end > end Works here with Ruby 1.8.4 (2005-12-24) [i386-mswin32] on Windows 2000. Same output as Dir[ "*" ].each do |f| puts f if File.file? f end Are you testing this in IRB? If so, remember that each returns the original array, including directories. Regards, Pit