Adam Boyle wrote:
> The desired output would sort sub-folders before files when traversing
If output is the only requirement for sort order, why not just have two
arrays, one for files and one for directories? You can then .sort.uniq
the directory listing and the files separately and output them at the
end of the traversal.
Mac
--
Posted via http://www.ruby-forum.com/.