Python Forum
Nested Subdirectory within current sub on shared network drive
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Nested Subdirectory within current sub on shared network drive
#1
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!!
Reply
#2
I get
Error:
Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'mkdir' is not defined
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Question How to get a removable disc type in drive Daring_T 12 966 Feb-11-2024, 08:55 AM
Last Post: Gribouillis
  open python files in other drive akbarza 1 632 Aug-24-2023, 01:23 PM
Last Post: deanhystad
  Integrating Google Drive in App Lahearle 0 439 Jul-19-2023, 05:51 PM
Last Post: Lahearle
  delete all files and subdirectory from a main folder mg24 7 1,526 Oct-28-2022, 07:55 AM
Last Post: ibreeden
  code to send attachments contained on the drive. stefanoste78 1 822 Oct-12-2022, 02:16 AM
Last Post: Larz60+
  access is denied error 5 for network drive mapping ? ahmedbarbary 2 1,729 Aug-17-2022, 10:09 PM
Last Post: ahmedbarbary
  Cant Access D: Drive kucingkembar 4 1,262 Jul-28-2022, 04:53 PM
Last Post: kucingkembar
  Calling exe on network drive GrahamL 4 2,466 Jan-21-2022, 12:01 PM
Last Post: GrahamL
  Failing to copy file from a network to a local drive tester_V 4 6,972 Jan-20-2021, 07:40 AM
Last Post: tester_V
  Shared reference of variables... Denial 1 1,373 Aug-29-2020, 01:52 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020