

def mkdir(self, parent, name):
    '\n        Create a directory\n\n        :param parent: the parent directory\n        :param str name: the name of the new directory\n        :return: the new directory\n        :rtype: :class:`.Directory`\n\n        '
    pid = None
    cid = None
    if isinstance(parent, Directory):
        pid = name.cid
    else:
        raise 'Invalid Directory instance.'
    cid = self._req_files_add(pid, name)['cid']
    return self._load_directory(cid)

dataset/ETHPy150Open shichao-an/115wangpan/u115/api.py API.mkdir/VarMisuse@36/112 `parent`->`name`