// Ensure directories exist
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) {
// Ensure directories exist
File directory = parent.toFile();
if (!directory.exists() && !directory.mkdirs()) {
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) {
// 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);
}