From: eggie5 Date: 2007-08-25T06:30:04+09:00 Subject: Re: Fast check if files exist On Aug 24, 1:08 pm, "Gavin Kistner" wrote: > From: eggie5 [mailto:egg...@gmail.com] > > > I have list (array) of file names in the form: > > > What's the fastest way I can check if these files exist in a given > > directory? > > Dir.chdir( source_directory ) do > my_array.each do |file_name| > if File.exist?( file_name ) > ... > else > ... > end > end > end Thanks, I like this a lot.