def normalize(self, path):
path = self._adjust_cwd(path)<EOL>self._log(DEBUG, '<STR_LIT>' % path)<EOL>t, msg = self._request(CMD_REALPATH, path)<EOL>if t != CMD_NAME:<EOL><INDENT>raise SFTPError('<STR_LIT>')<EOL><DEDENT>count = msg.get_int()<EOL>if count != <NUM_LIT:1>:<EOL><INDENT>raise SFTPError('<STR_LIT>' % count)<EOL><DEDENT>return _to_unicode(msg.get_string())<EOL>
Return the normalized path (on the server) of a given path.  This
can be used to quickly resolve symbolic links or determine what the
server is considering to be the "current folder" (by passing C{'.'}
as C{path}).

@param path: path to be normalized
@type path: str
@return: normalized form of the given path
@rtype: str

@raise IOError: if the path can't be resolved on the server