Hello,
Google didn't help.
On Windows, I need to loop through the directories one level below the start directory, and through all the files in each of those sub-directories. Sub-directories might contain spaces.
Google didn't help.
On Windows, I need to loop through the directories one level below the start directory, and through all the files in each of those sub-directories. Sub-directories might contain spaces.
for dir in os.listdir("."): print(dir) #os.chdir(dir) #FileNotFoundError: [WinError 2] The system cannot find the file specified #os.chdir("./" + dir) #FileNotFoundError: [WinError 2] The system cannot find the file specified os.chdir(f"./{dir}") #FileNotFoundError: [WinError 2] The system cannot find the file specifiedThank you.