Feb-20-2017, 06:22 PM
This is the first part that works , basically created 3 new mandatory folders (1,2,3) in the main TEST directory and if user wants to add any new one they can do so. This is Python_1
Any ideas?
Thank you very much for your help!
import os
root_path = r"C:\TEST"
list_dir = []
while True:
userinput1 = raw_input("Enter the name for Folder1, Folder2, Folder3:")
list_dir.append(userinput1)
userinput2 = None
#ask user to respond 'yes' or 'no' as to whether they want to add another directory
while userinput2 != "yes" and userinput2 != "no":
userinput2 = raw_input("Would you like to add another directory? yes/no: ")
if userinput2 == "no":
break
for directory in list_dir:
os.mkdir(os.path.join(root_path, directory))
print 'New directories have been created'Now I need a new script that does the following: Creates new main folder WORKING within TEST, and copy all folders created in Python_1 into newly created WORKING folder with appended _working to the name of the copied folders.Any ideas?
Thank you very much for your help!
