def listdir(self, path):
        directories, files = set(), []
        for name in self.files:
            if name.startswith(path):
                without_path = name[len(path):]
                try:
                    slash_index = without_path.index('/')
                    directories.add(without_path[:slash_index])
                except __HOLE__:
                    files.append(without_path)
        return list(directories), files
dataset/ETHPy150Open sunscrapers/djet/djet/files.py/InMemoryStorage.listdir