does any one knows a linux based program/script that can generate html files based on directory structure?

link|improve this question

I made my own in python to index my Dropbox public folder. It wasn't very hard. (dl.dropbox.com/u/2502059/index.html if you want to see. The script that generated it is makeIndex2.py under /Python Scripts.) – Phoshi Jul 22 '10 at 18:55
Thanks! That helps a lot. I can get the concept from your script. – TusharG Jul 22 '10 at 20:05
feedback

1 Answer

up vote 2 down vote accepted

Some versions of tree, which is a common utility, can produce HTML output.

tree -H baseHREF
link|improve this answer
I learn something new everyday here. – steve.lippert Jul 22 '10 at 21:05
Hey Dennis Thanks a lot. Your answer is closest and easiest to deploy. I wasn't aware tree command is so powerful. – TusharG Jul 23 '10 at 2:53
Unfortunately this isn't available on the Windows tree command I have. – jamiebarrow Aug 4 '11 at 7:56
@jamiebarrow: The question is tagged linux. – Dennis Williamson Aug 7 '11 at 3:06
Yes I know, hence 'Unfortunately' ... :) The -H switch isn't available for me, on Windows. I do have the tree command. I think via one of the GNU core utils packages. – jamiebarrow Aug 8 '11 at 9:32
show 2 more comments
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.