From a0030c1181626ac462185cfda249024ce09503b6 Mon Sep 17 00:00:00 2001 From: Kamil Jarmusik Date: Mon, 25 Nov 2024 22:06:29 +0100 Subject: [PATCH] #2930 fixed high pool priority and database termination sequence: corrected Common.java; --- src/com/serotonin/mango/Common.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/serotonin/mango/Common.java b/src/com/serotonin/mango/Common.java index f9a8d1abc2..f07c3b0dd5 100644 --- a/src/com/serotonin/mango/Common.java +++ b/src/com/serotonin/mango/Common.java @@ -20,6 +20,7 @@ import java.io.File; import java.nio.charset.Charset; +import java.nio.file.Files; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.text.ParseException; @@ -355,7 +356,7 @@ public static String getFiledataPath() { name = ctx.getServletContext().getRealPath(name.substring(1)); File file = new File(name); - if (!file.exists()) + if (Files.notExists(file.toPath())) file.mkdirs(); lazyFiledataPath = name;