Walking a heirarchy of text files

Post Reply
User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

Walking a heirarchy of text files

Post by Thunderstone »



I have a heirarchy of text files on my web server that I would like to
walk. Looks something like this:

http://www.myserver.com/apps/text_files
http://www.myserver.com/apps/text_files/a-f/
http://www.myserver.com/apps/text_files/a-f/important/
http://www.myserver.com/apps/text_files/g-z/

I would like to walk the files from text_files on down. These files are
mixed text and HTML, and they don't necessarily reference one another.

Is there a way to make gw walk all the files from text_files on down
without specifying each and every file?

Thanks,
--
Mark Miller
mark@chalkboardcom.com
Chalkboard Communications (206) 459-5577
http://www.chalkboardcom.com


User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

Walking a heirarchy of text files

Post by Thunderstone »



Turn on directory indexing in your webserver if it's not already on.
Then when you access http://www.myserver.com/apps/text_files/
it will automatically generate a list of files and directories
under it that gw will then walk.




Post Reply