public static File makeDirsIfNotExist(String childPath, String parentPath) {
        File finalPath = new File(parentPath, childPath);
        try {
            boolean result = finalPath.mkdirs();
            LOGGER.info("try to create local path {}, result is {}", finalPath, result);
        } catch (Exception ex) {
            throw new RuntimeException(ex);
        }
        return finalPath;
    }
Create directory if the path not exists.

@return the file after creation
inlong-agent/agent-common/src/main/java/org/apache/inlong/agent/utils/AgentUtils.java