Python Forum
Nested Subdirectory within current sub on shared network drive - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Nested Subdirectory within current sub on shared network drive (/thread-19204.html)



Nested Subdirectory within current sub on shared network drive - Agregware - Jun-18-2019

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!!


RE: Nested Subdirectory within current sub on shared network drive - Gribouillis - Jun-19-2019

I get
Error:
Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'mkdir' is not defined