require 'find'
#your path, such as /var/www
path = 'e:\.'
Find.find(path) do |f|
p "===============directory #{f}==============" if File.directory?(f)
p f
en
require 'find'
#your path, such as /var/www
path = 'e:\.'
Find.find(path) do |f|
p "===============directory #{f}==============" if File.directory?(f)
p f
en