the fact that it fails shoul be due to some windows restriction about trash & some hidden files, to bypass that you can add a filter in here
def walk(dir): for name in os.listdir(dir): #the following line is the filter if name != 'Trash can' or name != 'some hidden directory name': path = os.path.join(dir,name) if os.path.isfile(path): ..... else: pass
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor