def write(self, filename, body, headers=None):
        dest = os.path.join(self.root, filename)
        dirname = os.path.dirname(dest)
        if not os.path.exists(dirname):
            os.makedirs(dirname)

        with open(dest, 'wb') as f:
            return f.write(to_bytes(body))
Write content to a file.
dataset/ETHPy150Open lepture/flask-storage/flask_storage/local.py/LocalStorage.write