title: Python: search multiple directories and grab newest file, deleting others
body: <p>New to python and would appreciate a little help.
  I would like to go through 10 directories and copy the newest file from each directory back into a single folder. There may be multiple files in each directory.</p>
  
  <p>I can pull a complete listing from each directory, not sure how to narrow this down. Any direction would be appreciated.
  inside the STATES directory will be directories for each state (i.e. CA, NY, FL, MI, GA)</p>
  
  <p>**Edited if it is helpful, the directory structure looks like this:
  '/dat/users/states/CA/'
  '/dat/users/states/NY/'
  '/dat/users/states/MI/'</p>
  
  <pre><code>import glob
  import os
  
  data_dir = '/dat/users/states/*/'
  file_dir_extension = os.path.join(data_dir, '*.csv')
  
  for file_name in glob.glob(file_dir_extension):
      if file_name.endswith('.csv'):
          print (file_name)
  </code></pre>