For Programmers: Free Programming Magazines  


Home > Archive > PERL Miscellaneous > February 2005 > format directory structure in html: is there a module









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author format directory structure in html: is there a module
ioneabu@yahoo.com

2005-02-27, 3:59 pm

hi!

Is there a module or script that will take a directory name as an
argument and produce nicely formatted HTML to display the entire
directory tree?

I was going to write one, which should not be too hard, but I thought
I'd ask as to not re-invent.

Thanks!

wana

Bob Walton

2005-02-27, 8:57 pm

ioneabu@yahoo.com wrote:
....
> Is there a module or script that will take a directory name as an
> argument and produce nicely formatted HTML to display the entire
> directory tree?
>
> I was going to write one, which should not be too hard, but I thought
> I'd ask as to not re-invent.

....
> wana
>


Maybe one of the 6000+ modules on CPAN would do the trick:

http://www.perl.com/CPAN/

--
Bob Walton
Email: http://bwalton.com/cgi-bin/emailbob.pl

----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Tad McClellan

2005-02-27, 8:57 pm

ioneabu@yahoo.com <ioneabu@yahoo.com> wrote:

> Is there a module or script that will take a directory name as an
> argument and produce nicely formatted HTML to display the entire
> directory tree?



Take this [1]:

find . -print | sed -e 's,[^/]*/\([^/]*\)$,`--\1,' -e 's,[^/]*/,| ,g'

and modify it to generate HTML instead. :-)



[1] Message-ID: <5sm1ka$gmg@shoga.wwa.com>

--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas
ioneabu@yahoo.com

2005-02-28, 3:57 am


Tad McClellan wrote:
> ioneabu@yahoo.com <ioneabu@yahoo.com> wrote:
>
>
>
> Take this [1]:
>
> find . -print | sed -e 's,[^/]*/\([^/]*\)$,`--\1,' -e 's,[^/]*/,|

,g'
>
> and modify it to generate HTML instead. :-)
>
>
>
> [1] Message-ID: <5sm1ka$gmg@shoga.wwa.com>
>
> --
> Tad McClellan SGML consulting
> tadmc@augustmail.com Perl programming
> Fort Worth, Texas


Awsome! Incredible! I am running it right now on my Mac.

To anyone looking to hire this man, he's clearly the best for the job.

Thank you, thank you, thank you, I love it!

wana

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com