mirror of
https://github.com/minio/minio.git
synced 2025-11-09 13:39:46 -05:00
Adding test to ensure list objects returns an error for non existant buckets to match previous bug fix and fix for inmemory
This commit is contained in:
@@ -88,6 +88,9 @@ func (storage *storage) StoreBucket(bucketName string) error {
|
||||
}
|
||||
|
||||
func (storage *storage) ListObjects(bucket, prefix string, count int) ([]mstorage.ObjectMetadata, bool, error) {
|
||||
if _, ok := storage.bucketdata[bucket]; ok == false {
|
||||
return []mstorage.ObjectMetadata{}, false, mstorage.BucketNotFound{Bucket: bucket}
|
||||
}
|
||||
// TODO prefix and count handling
|
||||
var results []mstorage.ObjectMetadata
|
||||
var keys []string
|
||||
|
||||
Reference in New Issue
Block a user