code: def filelist2html(lst, fldr, hasHeader='N'):
      
      txt = '<TABLE width=100% border=0>'
      numRows = 1
      if lst:
          for l in lst:
              if hasHeader == 'Y':
                  if numRows == 1:
                      td_begin = '<TH>'
                      td_end = '</TH>'
                  else:
                      td_begin = '<TD>'
                      td_end = '</TD>'
              else:
                  td_begin = '<TD>'
                  td_end = '</TD>'
              numRows += 1
              txt += '<TR>'
              if type(l) is str:
                  txt += td_begin + link_file(l, fldr) + td_end
              elif type(l) is list:
                  txt += td_begin
                  for i in l:
                      txt+= link_file(i, fldr) + '; '
                  txt += td_end
              else:
                  txt += td_begin + str(l) + td_end
              txt += '</TR>\n'
      txt += '</TABLE><BR>\n'
      return txt
docs: formats a standard filelist to htmk using table formats