/ Published in: Other
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
def subdirectories_of(path, options = {}) depth = options[:at_depth_of] || 1 Dir[File.join(path, * ["*"] * depth + [""])] end