title: Merge two folders in python
body: <p>I need to merge two folders,</p>
  <p>The folders are named 12345 and 12345_</p>
  <p>How would I merge the two?</p>
  <p>I have tried but I end up with '12345.'</p>
  <pre class="lang-py prettyprint-override"><code>for file in files:
      subFolder = os.path.join(destpath, file[:6])
      if not os.path.isdir(subFolder):
          os.makedirs(subFolder)
      shutil.copy(os.path.join(root, file), subFolder)
  </code></pre>