Use the Dir-to-XML gem to save a file directory listing to a Dynarex file.

*installation*

sudo gem1.9.1 install dir-to-xml

Successfully installed dir-to-xml-0.1.0
1 gem installed
Installing ri documentation for dir-to-xml-0.1.0...
Updating class cache with 3178 classes...
Installing RDoc documentation for dir-to-xml-0.1.0...


require 'dir-to-xml'

DirToXML.new
#=> #

file created: dir.xml



Introducing the Dir-to-XML gem | DZone Snippets | News


fun.txt
file
.txt
2010-06-05 17:24:10 +0100
2010-06-05 17:24:10 +0100
2010-06-05 17:24:10 +0100



html
directory

2010-05-07 19:20:54 +0100
2010-05-07 19:20:54 +0100
2010-05-07 19:20:56 +0100



ruby
directory

2010-06-05 17:20:18 +0100
2010-06-05 17:20:18 +0100
2010-06-05 17:20:18 +0100



dir.xml

.xml
2010-06-05 18:19:03 +0100
2010-06-05 18:19:03 +0100
2010-06-05 18:19:03 +0100






Resources:
- Create a directory listing in XML format [dzone.com]
- jrobertson's dir-to-xml at master [github.com]

Read more: http://feeds.dzone.com/~r/dzone/snippets/~3/FC4XIehw2g0/11547