import os
f = open ( 'elenco.txt', 'w' )
for root, dirs, files in os.walk('c:/std/'):
for name in files:
filename = os.path.join(root, name)
size = os.path.getsize(filename)
print >> f, filename + chr(9) + str(size)
Annunci