title: paramiko sftp get error
body: <p>I have the following code with initalization of credentials removed.
  Printing of directory listing works, however "get" fails with the following exception</p>
  
  <p>It seems to me that is failing in prefetch since I extracted the code in getfo and got it to work as a function in my code with prefetch commented out. </p>
  
  <p>Is there a better solution?</p>
  
  <pre><code>*** Caught exception: &lt;type 'exceptions.IOError'&gt;: [Errno 2] The message [/Inbox/CD.BAIINT.D130802.T200541.M856559] is not extractable!
  Traceback (most recent call last):
    File "C:\Projects\Python\SFTP\SFTPHSC.py", line 71, in &lt;module&gt;
      sftp.get(files, localpath + "/" + files)
    File "build\bdist.win-amd64\egg\paramiko\sftp_client.py", line 676, in get
      size = self.getfo(remotepath, fl, callback)
    File "build\bdist.win-amd64\egg\paramiko\sftp_client.py", line 640, in getfo
      file_size = self.stat(remotepath).st_size
    File "build\bdist.win-amd64\egg\paramiko\sftp_client.py", line 337, in stat
      t, msg = self._request(CMD_STAT, path)
    File "build\bdist.win-amd64\egg\paramiko\sftp_client.py", line 689, in _request
      return self._read_response(num)
    File "build\bdist.win-amd64\egg\paramiko\sftp_client.py", line 736, in _read_response
      self._convert_status(msg)
    File "build\bdist.win-amd64\egg\paramiko\sftp_client.py", line 762, in _convert_status
      raise IOError(errno.ENOENT, text)
  IOError: [Errno 2] The message [/Inbox/CD.BAIINT.D130802.T200541.M856559] is not extractable!
  </code></pre>
  
  <hr>
  
  <pre><code>username = ''
  password=''
  hostname =''
  port=22
  localpath ="c:/BkFiles/"
  t = paramiko.Transport((hostname, port))
  
  try:
      t.connect(username=username, password=password)
      sftp = paramiko.SFTPClient.from_transport(t)
  
      dirlist = sftp.listdir('.')
      print "Dirlist:", dirlist
  
      sftp.chdir('Inbox')
      dirlist = sftp.listdir('.')
      print "Dirlist:", dirlist
  
      for files in dirlist:
          sftp.get(files, localpath + files)
          print files
  except Exception, e:
      print '*** Caught exception: %s: %s' % (e.__class__, e)
      traceback.print_exc()
  finally:
       try:
          t.close()
       except:
          pass
  </code></pre>