mirror of https://github.com/halo-dev/halo
parent
11f48781cb
commit
65c1424086
|
@ -187,7 +187,7 @@ public class LocalFileHandler implements FileHandler {
|
||||||
|
|
||||||
// Delete the file key
|
// Delete the file key
|
||||||
try {
|
try {
|
||||||
Files.delete(path);
|
Files.deleteIfExists(path);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new FileOperationException("附件 " + key + " 删除失败", e);
|
throw new FileOperationException("附件 " + key + " 删除失败", e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue