module TurboRex::Utils
Public Class Methods
get_all_subdir(root_path)
click to toggle source
# File lib/turborex/utils.rb, line 5 def self.get_all_subdir(root_path) require 'find' paths = [] Find.find(root_path) do |path| if FileTest.directory?(path) if File.basename(path)[0] == '.' Find.prune else paths << path end end end paths end