Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > format directory structure in html: is there a module

Reply
Thread Tools

format directory structure in html: is there a module

 
 
ioneabu@yahoo.com
Guest
Posts: n/a
 
      02-27-2005
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

 
Reply With Quote
 
 
 
 
Tad McClellan
Guest
Posts: n/a
 
      02-27-2005
http://www.velocityreviews.com/forums/(E-Mail Removed) <(E-Mail Removed)> 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$(E-Mail Removed)>

--
Tad McClellan SGML consulting
(E-Mail Removed) Perl programming
Fort Worth, Texas
 
Reply With Quote
 
 
 
 
ioneabu@yahoo.com
Guest
Posts: n/a
 
      02-28-2005

Tad McClellan wrote:
> (E-Mail Removed) <(E-Mail Removed)> 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$(E-Mail Removed)>
>
> --
> Tad McClellan SGML consulting
> (E-Mail Removed) 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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there a function that can test if a path is in a directory or oneof its sub-directory (recursively)? Peng Yu Python 0 11-06-2009 03:41 AM
System.IO.Directory.GetDirectories() and System.IO.Directory.GetFiles() are not returning the specified directory Nathan Sokalski ASP .Net 2 09-06-2007 03:58 PM
Directory structure of home directory? john HTML 4 06-15-2006 06:50 PM
[newbie]Is there a module for print object in a readable format? James Gan Python 11 10-19-2005 03:43 PM
Is there any module to play mp3 or wav format files? el chupacabra Python 1 08-27-2005 01:22 PM



Advertisments