Posted By

bigredjoe on 12/03/09


Tagged

textmate ruby files directory


Versions (?)

Find Subdirectories


 / Published in: Other
 

  1. def subdirectories_of(path, options = {})
  2. depth = options[:at_depth_of] || 1
  3. Dir[File.join(path, * ["*"] * depth + [""])]
  4. end

Report this snippet  

You need to login to post a comment.