Merge pull request #1214 from brendanashworth/improve-listbuckets

ListBuckets test & improvement, IsValid{Bucket,Object}Name fix, test, docs
This commit is contained in:
Anand Babu (AB) Periasamy
2016-03-10 18:20:18 -08:00
4 changed files with 155 additions and 11 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ func (fs Filesystem) ListBuckets() ([]BucketMetadata, *probe.Error) {
}
// If directories are found with odd names, skip them.
dirName := strings.ToLower(file.Name())
if file.IsDir() && !IsValidBucketName(dirName) {
if !IsValidBucketName(dirName) {
continue
}
metadata := BucketMetadata{