title: How to move multiple files whith spaces in their names with python?
body: <p>I want to move multiple files (only files not folders) from the directory <code>source</code> to directory <code>dest</code>.  I'm doing like below using a <code>for</code> loop:</p>
  
  <pre><code>import os
  import shutil
  import glob
  
  source = "r'" + "/This is/the source path/"
  dest = "r'" + "/This is/the destination path/"
  
  files = glob.glob(source+'/*.*')    
  
  for f in files:
      shutil.move(source+f, dest)
  
  &gt;&gt; IOError: [Errno 2] No such file or directory:
  </code></pre>
  
  <p>But if I do it for a single file like this, it works.</p>
  
  <pre><code>source = "/This is/the source path/"
  dest = "/This is/the destination path/"
  
  file_1 = r'This is a file.txt'
  shutil.move(source+file_1, dest) ## This works
  </code></pre>
  
  <p>How can I dot for several files?    </p>