Code: Select all
import os
print "Content-type: text/html\n\n"
for file in os.listdir(os.getcwd()):
if 'index' not in pathFile:
pathFile = os.getcwd().replace('/var/www/', 'http://thinkplace.tk/') + '/' + file
print '<a href="%s">%s</a>'%(pathFile, pathFile)
E: Ok, I derped =p