title: Python move all files from multiple subdirectories to different corresponding subdirectories
body: <p>Im working on a python script taking all the files in sub folders inside a folder and move to another folder that has identically structured sub folders. (see picture)</p>
  
  <p><a href="https://puu.sh/ATMwe/ee95ece29e.png" rel="nofollow noreferrer">picture</a></p>
  
  <p>My script currently just grabs all the files from directories and move to another folder location. Is there an elegant way to do this? I'm dealing with 31 sub directories inside a folder so hard coding for all 31 would be tedious </p>
  
  <p>thanks a lot</p>
  
  <pre><code>import shutil
  import os
  src = r'C:\folderA'
  dst = r'C:\folderB'
  
  for root, subdirs, files in os.walk(src):
      for file in files:
          path = os.path.join(root, file)
          shutil.move(path, dst)
  </code></pre>