diff --git a/webgen.py b/webgen.py index 9aae5ba..e9fd237 100755 --- a/webgen.py +++ b/webgen.py @@ -21,6 +21,13 @@ xwidth = os.get_terminal_size()[0] - 3 ywidth = os.get_terminal_size()[1] - 3 os.chdir(sourcedir) +### for module mkdirindex: +filedir = "/home/wn/www/i21k.de/files/" +indexfilename = "index.html" +filedirheadline = "Files" +dirindexfile = open(filedir + indexfilename, "w") +#### + # Prepend an hourly tinestamp to the later name of the file creationtime = datetime.datetime.now().strftime("%Y-%m-%d %H:00 ") # generate a more precise ctime to be included in the resulting webpage @@ -199,4 +206,41 @@ html_out_file.close() if outfile != sys.stdout: print(outputfile) + +# Dig the files-directory and generate an index. + +head1 = ( + '
\n \n