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"); }