We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78991ef commit 68cee4eCopy full SHA for 68cee4e
1 file changed
src/main/java/fr/openmc/core/utils/FilesUtils.java
@@ -10,6 +10,7 @@
10
import java.net.URL;
11
import java.nio.charset.StandardCharsets;
12
import java.nio.file.Files;
13
+import java.nio.file.NoSuchFileException;
14
import java.nio.file.Path;
15
import java.nio.file.Paths;
16
import java.util.*;
@@ -45,6 +46,8 @@ public static void deleteDirectory(File dir) throws IOException {
45
46
.forEach(path -> {
47
try {
48
Files.delete(path);
49
+ } catch (NoSuchFileException e) {
50
+ OMCLogger.warn("Impossible de supprimer (fichier manquant): {}", path, e.getMessage());
51
} catch (IOException e) {
52
OMCLogger.warn("Impossible de supprimer: {}", path, e);
53
}
0 commit comments