> @@ -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()) {

Should this be inverted, e.g.,

```java
if (file.isDirectory()) {
    // delete attributes
}
if (!file.delete()) {
    // log failure
}
```

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

Reply via email to