All pastes #296084 Raw Edit

Someone

public text v1 · immutable
#296084 ·published 2006-12-29 23:06 UTC
rendered paste body
#!/usr/bin/env python
import glob
import os
import shutil
L = range(1, 100)
for i in glob.glob('*.html'):
        if True in [x.isdigit() for x in i]:
                dir = i[:4]
                os.mkdir(dir)
                shutil.copy(i, dir)
                os.remove(dir + '-*.html')
                file = open('howtofixoutput.txt', 'w')
                file.write(i, '\n')
                file.close()
file2 = open('howtofixoutput.txt', 'r')
file2.readlines()