title: Extract all files from multiple folders with Python
body: <p>I wrote down this code:</p>
  
  <pre><code>import shutil
  
  files = os.listdir(path, path=None)
  for d in os.listdir(path):
      for f in files:
          shutil.move(d+f, path)
  </code></pre>
  
  <p>I want every folder in a given directory (<code>path</code>) with files inside, the files contained in that folder are moved to the main directory(<code>path</code>) where the folder is contained.</p>
  
  <p>For Example: 
  The files in this folder:   <code>C:/example/subfolder/</code>
  Will be moved in:           <code>C:/example/</code></p>
  
  <p>(And the directory will be deleted.)
  Sorry for my bad english :)</p>