docs: public static void ensureDirectoryIsRecreated(
          final File directory, final String descriptionLabel, final BiConsumer<String, String> callback)
      {
          if (directory.exists())
          {
              delete(directory, false);
              callback.accept(directory.getAbsolutePath(), descriptionLabel);
          }
  
          if (!directory.mkdirs())
          {
              throw new IllegalArgumentException("could not create " + descriptionLabel + " directory: " + directory);
          }
      }