public static void createDirectory(Path path) {
    try {
      Files.createDirectories(path);
    } catch (IOException e) {
      throw new IllegalStateException("Unable to create directories " + path, e);
    }
  }
Ensures a directory and all parent directories exists.

@throws IllegalStateException if an error occurs
planetiler-core/src/main/java/com/onthegomap/planetiler/util/FileUtils.java