I am trying to create my first python program that deletes any empty directories within d:\source
. It appears I can't even enter the directory with my current skills:
import os
os.getcwd()
os.chdir("D:\\SOURCE")
os.getcwd()
All I get is...
D:\CODING\venv\Scripts\python.exe D:/CODING/tester.py
Process finished with exit code 0
It seems it has not changed the working dir, how do I verify that? Why won't it display the results/errors for the os.chdir("D:\\SOURCE")
or the second os.getcwd()
command at all?