def chmod(self, path, mode):
path = self._adjust_cwd(path)<EOL>self._log(DEBUG, "<STR_LIT>".format(path, mode))<EOL>attr = SFTPAttributes()<EOL>attr.st_mode = mode<EOL>self._request(CMD_SETSTAT, path, attr)<EOL>
Change the mode (permissions) of a file.  The permissions are
unix-style and identical to those used by Python's `os.chmod`
function.

:param str path: path of the file to change the permissions of
:param int mode: new permissions