Merge pull request #248 from harshavardhana/pr_out_length_of_items_to_be_zero_in_listobjects_is_a_valid_case
This commit is contained in:
@@ -180,10 +180,8 @@ func (c *s3Client) ListObjects(bucket, objectPrefix string) (items []*client.Ite
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if len(items) > 0 {
|
||||
return items, nil
|
||||
}
|
||||
return nil, os.ErrNotExist
|
||||
// even if items are equal to '0' is valid case
|
||||
return items, nil
|
||||
default: // Error
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user