Enable conditional bucket creation in Minio connection
This commit is contained in:
parent
45c805ef33
commit
810d471f05
1 changed files with 2 additions and 2 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue