Python Forum

Full Version: Nested Subdirectory within current sub on shared network drive
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Would anyone happen to know how to create a sub directory within a current sub directory on a network drive? My folder is creating in the initial directory but won’t go further. I tried
date= Datetime.Now.str(‘%m-%d-%y’)
path = ‘U:\gebersolle\My Documents\New Placement\NEXT
mkdir(path, date)

It’s only letting me create a directory within gebersolle...I’m new at this but I’ve searched for hours and have found absolutely nothing on it!!
I get
Error:
Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'mkdir' is not defined