Is there a cleaner built-in way to do this?
ree> Pathname.new(\'/path/to\').children.select{|e| e.directory?}.map{|d| d.basename.to_s} => [\"test1\", \"t
Pathname.glob("/path/to/*/").map { |i| i.basename.to_s }