creating htmls from a directory tree?

2010-02-10 Thread Anton Shterenlikht
I'd like to upload a directory structure to a web server. I'd like to create in each subdirectory an index.html with a simple list of files in this directory for a simple browsing. This sounds like a perl or shell script, but I was wondering if there is someting like this already available from

Re: creating htmls from a directory tree?

2010-02-10 Thread Bill Moran
In response to Anton Shterenlikht me...@bristol.ac.uk: I'd like to upload a directory structure to a web server. I'd like to create in each subdirectory an index.html with a simple list of files in this directory for a simple browsing. This sounds like a perl or shell script, but I was

Re: creating htmls from a directory tree?

2010-02-10 Thread Anton Shterenlikht
On Wed, Feb 10, 2010 at 10:05:36AM -0500, Bill Moran wrote: In response to Anton Shterenlikht me...@bristol.ac.uk: I'd like to upload a directory structure to a web server. I'd like to create in each subdirectory an index.html with a simple list of files in this directory for a simple

Re: creating htmls from a directory tree?

2010-02-10 Thread Daniel Molina Wegener
On Wednesday 10 February 2010, Anton Shterenlikht me...@bristol.ac.uk wrote: On Wed, Feb 10, 2010 at 10:05:36AM -0500, Bill Moran wrote: In response to Anton Shterenlikht me...@bristol.ac.uk: I'd like to upload a directory structure to a web server. I'd like to create in each

Re: creating htmls from a directory tree?

2010-02-10 Thread Robert Huff
Anton Shterenlikht writes: I'd like to upload a directory structure to a web server. I'd like to create in each subdirectory an index.html with a simple list of files in this directory for a simple browsing. This sounds like a perl or shell script, but I was

Re: creating htmls from a directory tree?

2010-02-10 Thread Anton Shterenlikht
On Wed, Feb 10, 2010 at 12:35:12PM -0300, Daniel Molina Wegener wrote: On Wednesday 10 February 2010, Anton Shterenlikht me...@bristol.ac.uk wrote: On Wed, Feb 10, 2010 at 10:05:36AM -0500, Bill Moran wrote: In response to Anton Shterenlikht me...@bristol.ac.uk: I'd like to upload a

Re: creating htmls from a directory tree?

2010-02-10 Thread Nathan Vidican
Could do something simple with a Perl script as such: #!/usr/bin/perl use strict; my @filenames = `ls`; print Content-type: text/html\n\n; print See the list below, click an item to open it: br\nlui\n; foreach my $F (@files) { print lia href=\$F\$F/a/li\n; } print /lui\n; # EOF You

Re: creating htmls from a directory tree?

2010-02-10 Thread Anton Shterenlikht
On Wed, Feb 10, 2010 at 11:59:32AM -0500, Nathan Vidican wrote: Could do something simple with a Perl script as such: #!/usr/bin/perl use strict; my @filenames = `ls`; print Content-type: text/html\n\n; print See the list below, click an item to open it: br\nlui\n; foreach my $F