title: using shutil.copyfile I get a Python IOError: [Errno 13] Permission denied:
body: <p>I have some python code using shutil.copyfile:</p>
  
  <pre><code>import os
  import shutil
  
  src='C:\Documents and Settings\user\Desktop\FilesPy'
  des='C:\Documents and Settings\user\Desktop\\tryPy\Output'
  
  x=os.listdir(src)
  a=os.path.join(src,x[1])
  
  shutil.copyfile(a,des)
  print a
  </code></pre>
  
  <p>It gives me an error:</p>
  
  <pre><code>IOError: [Errno 13] Permission denied: 'C:\\Documents and Settings\\user\\Desktop\\tryPy\\Output'
  </code></pre>
  
  <p>Why don't I have permission to copy the file?</p>