From: Robert Klemme Date: 2007-08-03T21:02:06+09:00 Subject: Re: pushing Find.find output into an array 2007/8/3, Jon Hawkins : > Im basically wanted to throw the output from a find into an array > > require 'find' > Dir.chdir('/') > Find.find("/", "./") {|x| puts x} ---> need to push the results into > an array with each item being a different element. Why do you traverse the root filesystem twice? require 'find' require 'enumerator' f1 = Find.to_enum(:find, "/").to_a f2 = Dir['**/*'] Note: results may differ. Cheers robert