def __setitem__(self, path, content):
    try:
        path = posixpath.join(self.path, path)
        content = bytearray(memoryview(content))
        attrs = {'Bucket': self.bucket, 'Body': content, 'Key': path, 'ContentType': 'application/octet-stream'}
        self.client.put_object(**attrs)
    except Exception as err:
        logger.error(err)
        raise S3Exception(err)
def __setitem__(self, path, content):
    try:
        path = posixpath.join(self.path, path)
        content = bytearray(memoryview(content))
        attrs = {'Bucket': self.bucket, 'Body': content, 'Key': path, 'ContentType': 'application/octet-stream'}
        self.client.put_object(**attrs)
    except Exception as err:
        logger.error(err)
        raise S3Exception(err)