From: Arlen Cuss Date: 2008-04-25T12:01:20+09:00 Subject: Re: pretty folder tree script ------=_Part_4635_32138688.1209092478737 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi John, http://pastie.caboo.se/186576 Replace the part after the test data with this. It produces the output I'd expect to see! I added some brief comments so hopefully you can get an idea of what it's doing. The next part would probably be sorting, at least at a rudimentary level, so that we process all the files first, then directories (at one level) - at the moment, directories and files are interspersed within the same level, so it's hard to get an overall idea. But perhaps you can work that out! Cheers, Arlen ------=_Part_4635_32138688.1209092478737--