# File app/controllers/metarep_controller.rb, line 384
  def report_tree_location_build (start, folder)
    @count = start
    for f in folder.children
      @count += 1
      @count = report_tree_location_build (@count, f)
    end
    for r in folder.reports
      @count += 1
      @tree_loc = TreeLocation.new({:path => '/metarep/showReport/'+ 
        r.id.to_s, :tree_id => @count})
      @tree_loc.save
    end
    return @count    
  end