

def write(self, name, data):
    '\n        Write entry to storage.\n        '
    self._make_base_dirs()
    path = self.compute_path(name)
    with open(path, 'wb') as file_:
        file_.write(data)
    self.logger.debug('Wrote file for: {}'.format(name))
    return path

dataset/ETHPy150Open jessemyers/cheddar/cheddar/index/storage.py DistributionStorage.write/original