andrewgaul commented on this pull request.
> + * @param prefix
+ *
+ */
+ private void removeObjectsWithPrefix(String container, String prefix) {
+ String nextMarker = null;
+ ObjectApi objectApi = api.getObjectApi(regionId, container);
+ do {
+ org.jclouds.openstack.swift.v1.options.ListContainerOptions
listContainerOptions = prefix(prefix);
+ if (nextMarker != null) {
+ listContainerOptions = listContainerOptions.marker(nextMarker);
+ }
+ PageSet<? extends StorageMetadata> chunks = list(container,
listContainerOptions);
+ Iterator<? extends StorageMetadata> iter = chunks.iterator();
+
+ while (iter.hasNext()) {
+ objectApi.delete(iter.next().getName());
Yes. DLO generally is poorly thought and and supported. Again, scope this
commit down to just the provider changes and submit the portable abstraction
changes as a separate pull request.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/1090#discussion_r117285005