title: Python moving files and directories from one folder to another
body: <p>I would like to move in python files and directories in one directory to another directory with overwrite ability.</p>
  
  <p>I started with the following code:</p>
  
  <pre><code>        #moving files from progs
          path = tempfolder + 'progs/'
          for dirs,files in os.listdir(path):
                   for f in files:
                          shutil.move(os.path.join(path, f) , os.path.join(compteurfolder, f))
  </code></pre>
  
  <p>So for the moment, I only try to move the files and I get the following errors:</p>
  
  <pre><code>    for dirs,files in os.listdir(path):
  ValueError: too many values to unpack
  </code></pre>
  
  <p>I guess this is because I have dirs and files but then how will I move directories too? And how to make sure it can overwrite the files in the other folder?</p>
  
  <p>Hope you can help.</p>