'Make a new directory on the remote machine
If parent is True, create all parent directories that do not exist
mode specifies unix permissions to apply to the new dir'

def mkdir(self, path, mode=493, ignore_failure=False):

    try:
        return self.sftp.mkdir(path, mode)
    except IOError:
        if (not ignore_failure):
            raise
