[EMAIL PROTECTED] wrote:
every object in os.walk() returns a 3-tuple, like below, it seems your
code assumes it returns only a list of files.

for d in os.walk('c:\\temp'):
        (dirpath, dirnames, filenames) = d
        print dirpath
        print dirnames
        print filenames


Thank you, this fixed it. I didn't read the docs well enough ;) -- http://mail.python.org/mailman/listinfo/python-list

Reply via email to