mirror of
https://github.com/minio/minio.git
synced 2025-01-23 20:53:18 -05:00
Merge pull request #94 from harshavardhana/pr_out_prefix_if_empty_skip_it_before_isvalidbucket
This commit is contained in:
commit
966707a7ed
@ -36,8 +36,10 @@ func start(ctrlChannel <-chan string, errorChannel chan<- error) {
|
||||
// Bucket Operations
|
||||
|
||||
func (storage *storage) ListBuckets(prefix string) ([]mstorage.BucketMetadata, error) {
|
||||
if mstorage.IsValidBucket(prefix) == false {
|
||||
return []mstorage.BucketMetadata{}, mstorage.BucketNameInvalid{Bucket: prefix}
|
||||
if prefix != "" {
|
||||
if mstorage.IsValidBucket(prefix) == false {
|
||||
return []mstorage.BucketMetadata{}, mstorage.BucketNameInvalid{Bucket: prefix}
|
||||
}
|
||||
}
|
||||
|
||||
files, err := ioutil.ReadDir(storage.root)
|
||||
|
Loading…
x
Reference in New Issue
Block a user