Ruby Create Recursive Directory Tree

I need to recursively traverse a directory and create a tree to be used with the jsTree control. The control accepts a JSON format like so. I need some ruby magic to make this happen cleanly and quickly.

Any help is appreciated.

12
задан Mem 2 April 2011 в 09:13
поделиться