mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-04-09 02:09:38 +00:00
[AB-93] changing how MessageToSend handles attached plaintext files
This commit is contained in:
@@ -36,4 +36,12 @@ public class FileService {
|
||||
public void safeDelete(File file) throws IOException {
|
||||
java.nio.file.Files.delete(file.toPath());
|
||||
}
|
||||
|
||||
public void safeDeleteIgnoreException(File file) {
|
||||
try {
|
||||
Files.delete(file.toPath());
|
||||
} catch (IOException e) {
|
||||
log.warn("Failed to delete file - ignoring.", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user