if (name.compare(delimiter) == 0)
goto next;
- s->formatter->open_object_section_with_attrs("subdir", FormatterAttrs("name", name.c_str(), NULL));
-
- /* swift is a bit inconsistent here */
- switch (s->format) {
- case RGW_FORMAT_XML:
- s->formatter->dump_string("name", name);
- break;
- default:
- s->formatter->dump_string("subdir", name);
- }
- s->formatter->close_section();
+ s->formatter->open_object_section_with_attrs("subdir", FormatterAttrs("name", name.c_str(), NULL));
+
+ /* swift is a bit inconsistent here */
+ switch (s->format) {
+ case RGW_FORMAT_XML:
+ s->formatter->dump_string("name", name);
+ break;
+ default:
+ s->formatter->dump_string("subdir", name);
+ }
+ s->formatter->close_section();
}
next:
if (do_objs)