From b4a380f15b51538dca69c0bbb9bc9286865db55a Mon Sep 17 00:00:00 2001 From: hth <1165559068@qq.com> Date: Thu, 11 Jan 2024 17:08:55 +0800 Subject: [PATCH] control plugin fix LocalDiskRuleStorage mkdirs (#11620) --- .../nacos/plugin/control/rule/storage/LocalDiskRuleStorage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/control/src/main/java/com/alibaba/nacos/plugin/control/rule/storage/LocalDiskRuleStorage.java b/plugin/control/src/main/java/com/alibaba/nacos/plugin/control/rule/storage/LocalDiskRuleStorage.java index 85b3c07aa5e..8b586b79928 100644 --- a/plugin/control/src/main/java/com/alibaba/nacos/plugin/control/rule/storage/LocalDiskRuleStorage.java +++ b/plugin/control/src/main/java/com/alibaba/nacos/plugin/control/rule/storage/LocalDiskRuleStorage.java @@ -59,7 +59,7 @@ private static String defaultBaseDir() { private File getConnectionRuleFile() { File baseDir = new File(localRuleBaseDir, "data" + File.separator + "connection" + File.separator); if (!baseDir.exists()) { - baseDir.mkdir(); + baseDir.mkdirs(); } return new File(baseDir, "limitRule"); }