mirror of https://github.com/apache/jclouds.git
fixed deleteallkeysinlist which forgot to check the status of the futures
This commit is contained in:
parent
e45d9e75d4
commit
6ea95932ff
|
@ -106,13 +106,13 @@ public class DeleteAllKeysInList implements ClearListStrategy, ClearContainerStr
|
||||||
if (options.isRecursive() && !fullPath.equals(options.getDir())) {
|
if (options.isRecursive() && !fullPath.equals(options.getDir())) {
|
||||||
execute(containerName, options.clone().inDirectory(fullPath));
|
execute(containerName, options.clone().inDirectory(fullPath));
|
||||||
}
|
}
|
||||||
connection.deleteDirectory(containerName, fullPath);
|
responses.put(md, connection.deleteDirectory(containerName, fullPath));
|
||||||
break;
|
break;
|
||||||
case RELATIVE_PATH:
|
case RELATIVE_PATH:
|
||||||
if (options.isRecursive() && !fullPath.equals(options.getDir())) {
|
if (options.isRecursive() && !fullPath.equals(options.getDir())) {
|
||||||
execute(containerName, options.clone().inDirectory(fullPath));
|
execute(containerName, options.clone().inDirectory(fullPath));
|
||||||
}
|
}
|
||||||
connection.deleteDirectory(containerName, md.getName());
|
responses.put(md, connection.deleteDirectory(containerName, md.getName()));
|
||||||
break;
|
break;
|
||||||
case CONTAINER:
|
case CONTAINER:
|
||||||
throw new IllegalArgumentException("Container type not supported");
|
throw new IllegalArgumentException("Container type not supported");
|
||||||
|
|
Loading…
Reference in New Issue