I'm trying to scan all directories inside a folder that has two special characters in it. The code is below.
import os
__loc__ = os.path.realpath(os.path.join(os.getcwd(),os.path.dirname(__file__))
path = os.path.join(__loc__,'Ração')
for root,dirs,files in os.walk(path):
for dir in dirs:
print(dir)
But nothing appears...
Does anybody know an easy solution to accept special characters in
os.walk argument?
Edit: I don't get an error from the code. It just do not iterate.