I'm trying to get os.walk() to work in a program I'm working on, but I keep getting the error: ValueError: invalid \x escape
From looking around online, I've seen that the error can arise from not using a raw string. However, I still keep getting the error...
import os
path = r'D:\Data\Tracking\'
for root, dirs, files in os.walk(path):
print root
print dirs
print files
Anyone have an idea of what I can do differently to make it work?