def normalize(self, path):
path = self._adjust_cwd(path)<EOL>self._log(DEBUG, "<STR_LIT>".format(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>".format(count))<EOL><DEDENT>return msg.get_text()<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 ``'.'``
as ``path``).

:param str path: path to be normalized
:return: normalized form of the given path (as a `str`)

:raises: ``IOError`` -- if the path can't be resolved on the server