Changed Files.deleteIfExists to Files.delete in FsBlobContainer
This commit is contained in:
parent
dfcdadb59f
commit
95a118d9c6
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue