> @@ -328,7 +376,20 @@ public void removeBlob(final String container, final
> String blobKey) {
> logger.debug("Deleting blob %s", fileName);
> File fileToBeDeleted = new File(fileName);
> if (!fileToBeDeleted.delete()) {
> - logger.debug("Could not delete %s", fileToBeDeleted);
> + if (fileToBeDeleted.isDirectory()) {
> + try {
> + UserDefinedFileAttributeView view =
> getUserDefinedFileAttributeView(fileToBeDeleted.toPath());
> + if (view != null) {
> + for (String s : view.list()) {
> + view.delete(s);
No, delete() would fail if it's not empty, in that case we need to delete all
the attributes, which will cause us to no longer treat it as a blob
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/637/files#r22750631