import glob path = "./*" files=glob.glob(path) print("
")
for file in files:
if file[-3:] == "odt":
print(file[2:-4] + " " + "[HTML] [ODT]" )
print("")
print("
")
if file[-4:] == "pptx":
print(file[2:-5] + " " + "[PPTX]" )
print("
")
print("