mirror of
https://github.com/minio/minio.git
synced 2025-04-01 10:13:42 -04:00
parent
1760687c83
commit
39865c0d2e
@ -423,8 +423,12 @@ func listMultipartUploadsCommon(layer ObjectLayer, bucket, prefix, keyMarker, up
|
|||||||
result.MaxUploads = maxUploads
|
result.MaxUploads = maxUploads
|
||||||
|
|
||||||
// Not using path.Join() as it strips off the trailing '/'.
|
// Not using path.Join() as it strips off the trailing '/'.
|
||||||
// Also bucket should always be followed by '/' even if prefix is empty.
|
|
||||||
multipartPrefixPath := pathJoin(mpartMetaPrefix, pathJoin(bucket, prefix))
|
multipartPrefixPath := pathJoin(mpartMetaPrefix, pathJoin(bucket, prefix))
|
||||||
|
if prefix == "" {
|
||||||
|
// Should have a trailing "/" if prefix is ""
|
||||||
|
// For ex. multipartPrefixPath should be "multipart/bucket/" if prefix is ""
|
||||||
|
multipartPrefixPath += slashSeparator
|
||||||
|
}
|
||||||
multipartMarkerPath := ""
|
multipartMarkerPath := ""
|
||||||
if keyMarker != "" {
|
if keyMarker != "" {
|
||||||
keyMarkerPath := pathJoin(pathJoin(bucket, keyMarker), uploadIDMarker)
|
keyMarkerPath := pathJoin(pathJoin(bucket, keyMarker), uploadIDMarker)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user