Skip policy files

master
Harshavardhana 10 years ago
parent 4ce180bb72
commit f04beab7c2
  1. 4
      pkg/storage/fs/fs.go

@ -66,6 +66,10 @@ func (storage *storage) ListBuckets() ([]mstorage.BucketMetadata, error) {
var metadataList []mstorage.BucketMetadata
for _, file := range files {
// Skip policy files
if strings.HasSuffix(file.Name(), "_policy.json") {
continue
}
if !file.IsDir() {
return []mstorage.BucketMetadata{}, mstorage.BackendCorrupted{Path: storage.root}
}

Loading…
Cancel
Save