Changed Files.deleteIfExists to Files.delete in FsBlobContainer

This commit is contained in:
gfyoung 2016-06-30 21:36:28 -04:00 committed by Ali Beyad
parent dfcdadb59f
commit 95a118d9c6
1 changed files with 1 additions and 4 deletions

View File

@ -85,10 +85,7 @@ public class FsBlobContainer extends AbstractBlobContainer {
@Override @Override
public void deleteBlob(String blobName) throws IOException { public void deleteBlob(String blobName) throws IOException {
Path blobPath = path.resolve(blobName); Path blobPath = path.resolve(blobName);
if (!Files.deleteIfExists(blobPath)) { Files.delete(blobPath);
// blobPath does not exist
throw new IOException("File [" + blobPath.toString() + "] does not exist");
}
} }
@Override @Override