public static synchronized Database getDatabase(Path folder) throws ProCoreException {
Path canonical;
try {
- if (!Files.exists(folder))
- Files.createDirectories(folder);
+ Files.createDirectories(folder);
canonical = folder.toRealPath();
} catch (IOException e) {
throw new ProCoreException("Could not get canonical path.", e);