From: "Igor Milovanović" Date: 2006-09-21T18:44:26+09:00 Subject: Re: How to Traverse a Directory This should give you back the entries in a path (dir), so just call itrecursely:
  def get_entries(path)    dir_entries = nil    begin      Dir.chdir(path) do  # get entries in this directory        dir_entries = Dir.entries(path)      end    rescue SystemCallError      @flash[:notice] = "No such path!"      redirect_to :controller => 'explorer', :action => 'index'    end    dir_entries unless dir_entries == nil  end
try looking also here: http://gotapi.com/index.html -- Igor MILOVANOVI�http://f13o.pletisan.rs.ba/blog/