Is there some elegant way how to create Windows path as follows.
home_dir = ('C:\First\Second\Third')
if not os.path.exists(home_dir):
os.mkdir(home_dir)
print("Home directory %s was created." %home_dir)
I am able to create in single steps "C:\First" then "Second" etc ...
With this code I am getting:
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\First\Second\Third'