All pastes #296093 Raw Edit

Unnamed

public text v1 · immutable
#296093 ·published 2006-12-29 23:11 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 len([x for x in i if x.isdigit()]) == 0:              #if it contains a number
                dir = i[:-5]
                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()