I want to build an XML map of all directories and files in my public/catalogs rails directory.(recursive map)
I would like it to be constructed with basic <directory> <file>
element with name attribute equal to the dir or file name.
<catalogs>
<file name="index.html">
<directory name="foo">
<file name="file1.html" />
<directory name="bar">
<file name="file2.html" />
</directory>
</directory>
</catalogs>
I am just not sure what the best way to do recursive map to xml - I looked for a plugin that might handle this since it seems like it something someone might have though to construct.
Any thoughts or direction on best way to create this?