private static Path resolve(Path parent, String path) {
        // Ensure directories exist
        File directory = parent.toFile();
        if (!directory.exists() && !directory.mkdirs()) {
            // Failed to create directories... should probably let this crash
            ScalingHealth.LOGGER.error("Failed to create config directory '{}'. This won't end well...",
                    directory.getAbsolutePath());
        }
        return parent.resolve(path);
    }
private static Path resolve(Path parent, String path) {
       
        File directory = parent.toFile();
        if (!directory.exists() && !directory.mkdirs()) {
           
            ScalingHealth.LOGGER.error("Failed to create config directory '{}'. This won't end well...",
                    directory.getAbsolutePath());
        }
        return parent.resolve(path);
    }
private static path resolve(path parent, string path) { file directory = parent.tofile(); if (!directory.exists() && !directory.mkdirs()) { scalinghealth.logger.error("failed to create config directory '{}'. this won't end well...", directory.getabsolutepath()); } return parent.resolve(path); }