You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
463 B

5 years ago
import sys, os
path = "static/files/"
for path, subdirs, files in os.walk(path):
for name in files:
if name.endswith('html'):
file = os.path.join(path, name)
total = open("allhtml.txt", "a")
with open(file, 'r') as f:
print(file)
# print(f.readlines())
5 years ago
content = f.read()
print(content)
5 years ago
total.write(content)
total.close()