in src/main/java/org/apache/commons/configuration2/io/DefaultFileSystem.java [100:108]
private void createPath(final File file) throws ConfigurationException {
// create the path to the file if the file doesn't exist
if (file != null && !file.exists()) {
final File parent = file.getParentFile();
if (parent != null && !parent.exists() && !parent.mkdirs()) {
throw new ConfigurationException("Cannot create path: " + parent);
}
}
}