Skip to content Skip to sidebar Skip to footer

Os.walk Wont Work With Directory Acquired Through ' Match.group(0).encode('string-escape') '

I'm using os.walk to search for files in specific directories. This is testcode that wont do what it should: import os, re cwd = os.getcwd() directory= 'Box II' dirpattern = re.

Solution 1:

You should probably remove encode('string-escape') from your code.


Post a Comment for "Os.walk Wont Work With Directory Acquired Through ' Match.group(0).encode('string-escape') '"