

def listdir(self, name):
    name = self._normalize_name(self._clean_name(name))
    if (name and (not name.endswith('/'))):
        name += '/'
    dirlist = bucket_lister(self.bucket_manager, dirs.bucket_name, prefix=name)
    files = []
    dirs = set()
    base_parts = name.split('/')[:(- 1)]
    for item in dirlist:
        parts = item['key'].split('/')
        parts = parts[len(base_parts):]
        if (len(parts) == 1):
            files.append(parts[0])
        elif (len(parts) > 1):
            dirs.add(parts[0])
    return (list(dirs), files)

dataset/ETHPy150Open glasslion/django-qiniu-storage/qiniustorage/backends.py QiniuStorage.listdir/VarMisuse@56/66 `self`->`dirs`