diff --git a/src/com/serotonin/mango/Common.java b/src/com/serotonin/mango/Common.java index f9a8d1abc..f07c3b0dd 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;