From 810d471f05a6514054b7e669f908e68960e78639 Mon Sep 17 00:00:00 2001 From: Andrea Bugeja Date: Tue, 9 Dec 2025 17:18:13 +0100 Subject: [PATCH] Enable conditional bucket creation in Minio connection --- rag/utils/minio_conn.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rag/utils/minio_conn.py b/rag/utils/minio_conn.py index 32f1e474f..a81fb38ab 100644 --- a/rag/utils/minio_conn.py +++ b/rag/utils/minio_conn.py @@ -115,8 +115,8 @@ class RAGFlowMinio: for _ in range(3): try: # Note: bucket must already exist - we don't have permission to create buckets - # if not self.conn.bucket_exists(bucket): - # self.conn.make_bucket(bucket) + if not self.bucket and not self.conn.bucket_exists(bucket): + self.conn.make_bucket(bucket) r = self.conn.put_object(bucket, fnm, BytesIO(binary),