title: IOError: [Errno 2] No such file or directory shutil
body: <p>im haveing a really simple code but for some reason i get Err no 2
  here is the code :</p>
  
  <pre><code>import os, shutil
  
  src=r"C:/Documents and Settings/user/Desktop/FilesPy"
  des=r"C:/Documents and Settings/user/Desktop/tryPy/Output"
  srcFile=r"C:/Documents and Settings/user/Desktop/tryPy/Input/FilesToCopy.txt"
  
  srcFile=open(srcFile,'a+')
  
  for line in srcFile:
      name=line.rstrip()
      pathS=os.path.join(src,name)
      pathD=os.path.join(des,name)
      if os.path.exists(pathS):
          shutil.copy(pathS,des)
  
      else:
          print 'false' + path
  </code></pre>
  
  <p>but all i get is :</p>
  
  <pre><code>IOError: [Errno 2] No such file or directory: 'C:/Documents and Settings/user/Desktop/tryPy/Output\\blatwo.docx'
  </code></pre>
  
  <p>i really don't know what to do tried reasearching the whole net didn't get an answer please help me.</p>
  
  <p>thanks :)</p>
  
  <p><em><strong>edit:</em></strong>
  here is the full trace of the run on eclipse:</p>
  
  <pre><code>pydev debugger
  Traceback (most recent call last):
    File "D:\EasyEclipse-for-Python-1.3.1\plugins\org.python.pydev.debug_1.3.13\pysrc\pydevd.py", line 803, in &lt;module&gt;
      debugger.run(setup['file'], None, None)
    File "D:\EasyEclipse-for-Python-1.3.1\plugins\org.python.pydev.debug_1.3.13\pysrc\pydevd.py", line 655, in run
      execfile(file, globals, locals) #execute the script
    File "D:\Python\CopyChosenFiles\Copy of CopyFiles.py", line 16, in &lt;module&gt;
      shutil.copy2(pathS,pathD)
    File "C:\Python27\Lib\shutil.py", line 128, in copy2
      copyfile(src, dst)
    File "C:\Python27\Lib\shutil.py", line 83, in copyfile
      with open(dst, 'rb') as fdst:
  IOError: [Errno 2] No such file or directory: 'C:/Documents and Settings/user/Desktop/tryPy/Output\\blatwo.docx'
  Exception AttributeError: "'NoneType' object has no attribute 'print_exc'" in &lt;function _remove at 0x00AC52B0&gt; ignored
  </code></pre>