mirror of https://github.com/milvus-io/milvus.git
Fix bug for ListWithPrefix from minio with recursive is false (#21040)
Signed-off-by: cai.zhang <cai.zhang@zilliz.com> Signed-off-by: cai.zhang <cai.zhang@zilliz.com>pull/21048/head
parent
93876c39dc
commit
6041e5b805
|
@ -389,9 +389,9 @@ func (mcm *MinioChunkManager) ListWithPrefix(ctx context.Context, prefix string,
|
|||
}
|
||||
|
||||
// with tailing "/", object is a "directory"
|
||||
if strings.HasSuffix(object.Key, "/") {
|
||||
if strings.HasSuffix(object.Key, "/") && recursive {
|
||||
// enqueue when recursive is true
|
||||
if recursive && object.Key != pre {
|
||||
if object.Key != pre {
|
||||
tasks.PushBack(object.Key)
|
||||
}
|
||||
continue
|
||||
|
|
Loading…
Reference in New Issue