From: Thomas Coopman Date: 2006-07-10T23:01:05+09:00 Subject: fastest way of looping through directories ------=_Part_8804_4309832.1152540059416 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I'm looking for the fastest way for looping through directories. at the moment i'm using Find but when I test this, the first time it runs really slow (like 20 seconds) the second time it runs much much quicker (less than a second). The problem is that I don't need to run this twice but only once. Is this because I use the unit tests that it runs slow or is it something else. I only need the path of all the files in the directory + subdirectories. What would be the fastest for this? using Dir.foreach or Find or something else Thanks for the help -- Thomas Coopman Thomas.coopman@gmail.com ------=_Part_8804_4309832.1152540059416--