Skip to content

Commit 68cee4e

Browse files
authored
Fix first load, without items adder contents
1 parent 78991ef commit 68cee4e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/main/java/fr/openmc/core/utils/FilesUtils.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import java.net.URL;
1111
import java.nio.charset.StandardCharsets;
1212
import java.nio.file.Files;
13+
import java.nio.file.NoSuchFileException;
1314
import java.nio.file.Path;
1415
import java.nio.file.Paths;
1516
import java.util.*;
@@ -45,6 +46,8 @@ public static void deleteDirectory(File dir) throws IOException {
4546
.forEach(path -> {
4647
try {
4748
Files.delete(path);
49+
} catch (NoSuchFileException e) {
50+
OMCLogger.warn("Impossible de supprimer (fichier manquant): {}", path, e.getMessage());
4851
} catch (IOException e) {
4952
OMCLogger.warn("Impossible de supprimer: {}", path, e);
5053
}

0 commit comments

Comments
 (0)