/ Published in: Ruby

snippet from project.ioni.st - Marcel Molina (?)
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
URL: http://project.ioni.st/post/1980#snippet_1980
Comments
