mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
Fix: Opendal miss tenant id (#10774)
### What problem does this PR solve? as https://github.com/infiniflow/ragflow/pull/10712 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -65,20 +65,20 @@ class OpenDALStorage:
|
||||
r = self._operator.write(f"{bucket}/{fnm}", binary)
|
||||
return r
|
||||
|
||||
def put(self, bucket, fnm, binary):
|
||||
def put(self, bucket, fnm, binary, tenant_id=None):
|
||||
self._operator.write(f"{bucket}/{fnm}", binary)
|
||||
|
||||
def get(self, bucket, fnm):
|
||||
def get(self, bucket, fnm, tenant_id=None):
|
||||
return self._operator.read(f"{bucket}/{fnm}")
|
||||
|
||||
def rm(self, bucket, fnm):
|
||||
def rm(self, bucket, fnm, tenant_id=None):
|
||||
self._operator.delete(f"{bucket}/{fnm}")
|
||||
self._operator.__init__()
|
||||
|
||||
def scan(self, bucket, fnm):
|
||||
def scan(self, bucket, fnm, tenant_id=None):
|
||||
return self._operator.scan(f"{bucket}/{fnm}")
|
||||
|
||||
def obj_exist(self, bucket, fnm):
|
||||
def obj_exist(self, bucket, fnm, tenant_id=None):
|
||||
return self._operator.exists(f"{bucket}/{fnm}")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user