title: How to choose & save files to a directory with Python 3?
body: <p>I'm having trouble making a subfolder for files to be stored into after choosing the Parent Folder or directory. </p>
  
  <p>This is my current script:</p>
  
  <pre><code>import os, sys, subprocess, shutil, glob, os.path, csv
  
  #User Chooses Folder or File Path Directory
  path_new = filedialog.askdirectory()
  
  def saveData():
     serial_number = input('Scan Barcode: ')
     folder_name = print('Folder Name:', serial_number)
     os.chdir(path_new) #Not sure if this is necessary
     if not os.path.exists(path_new):
         os.makedirs(path_new)
     print ('The data has been stored in the following directory:', path_new)
     shutil.move('file_directory/TOTAL.csv', 'chosen_directory/%s'% (serial_number))
     shutil.move('file_directory/enviro.csv', 'chosen_directory/%s' % (serial_number))
  </code></pre>
  
  <p>The script runs, but just not how I would like it to. Does anyone have any recommendations or an alternate solution to creating a folder and selecting it as the directory to have subfolders created and have files transferred into them?</p>