I Am trying to output the os.path.walk to a file, but the writelines method complains....
Below is the code, any helpful suggestions would be appreciated. def visit(arg, dirnames, names): print dirnames dirinput = raw_input("Enter directory to read: ") listdir = os.path.walk (dirinput, visit, None) f = open("walktxt", "w") f.writelines(listdir) f.close() -- http://mail.python.org/mailman/listinfo/python-list