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

:param int mode: new permissions