def mkdir(self, path, mode=o777):
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_MKDIR, path, attr)<EOL>
Create a folder (directory) named ``path`` with numeric mode ``mode``.
The default mode is 0777 (octal).  On some systems, mode is ignored.
Where it is used, the current umask value is first masked out.

:param str path: name of the folder to create
:param int mode: permissions (posix-style) for the newly-created folder