def mkdir(self, path, mode=<NUM_LIT>):
path = self._adjust_cwd(path)<EOL>self._log(DEBUG, '<STR_LIT>' % (path, mode))<EOL>attr = SFTPAttributes()<EOL>attr.st_mode = mode<EOL>self._request(CMD_MKDIR, path, attr)<EOL>
Create a folder (directory) named C{path} with numeric mode C{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 path: name of the folder to create
@type path: str
@param mode: permissions (posix-style) for the newly-created folder
@type mode: int