> @@ -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);

Actually I might misunderstand, we have to delete all the attributes before 
deleting a directory?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/637/files#r22703720

Reply via email to