def _convert_status(self, msg):
code = msg.get_int()<EOL>text = msg.get_text()<EOL>if code == SFTP_OK:<EOL><INDENT>return<EOL><DEDENT>elif code == SFTP_EOF:<EOL><INDENT>raise EOFError(text)<EOL><DEDENT>elif code == SFTP_NO_SUCH_FILE:<EOL><INDENT>raise IOError(errno.ENOENT, text)<EOL><DEDENT>elif code == SFTP_PERMISSION_DENIED:<EOL><INDENT>raise IOError(errno.EACCES, text)<EOL><DEDENT>else:<EOL><INDENT>raise IOError(text)<EOL><DEDENT>
Raises EOFError or IOError on error status; otherwise does nothing.