[opt](config) create custom conf dir if not exists (#29391)

This commit is contained in:
Mingyu Chen
2024-01-05 00:14:16 +08:00
committed by GitHub
parent 9aafcb18bd
commit c1ddcc5751

View File

@ -391,6 +391,7 @@ public class ConfigBase {
throws IOException {
File file = new File(customConfFile);
if (!file.exists()) {
file.getParentFile().mkdirs();
file.createNewFile();
} else if (resetPersist) {
// clear the customConfFile content