code: private File determineLogDirectory(final BatchOptions options, String operation) {
          File logDirectoryParent = options != null ? options.getLogDirectoryParent() : null;
          if (logDirectoryParent == null) {
              logDirectoryParent = Files.createTempDir();
          }
          File logDirectory = new File(logDirectoryParent, "data-" + operation + "-reports");
          try {
              logDirectory = logDirectory.getCanonicalFile();
              FileUtils.deleteDirectory(logDirectory);
          } catch (IOException e) {
              throw new RuntimeException(
                      "Failed to clean data-" + operation + " log directory: " + logDirectory, e);
          }
          logDirectory.mkdirs();
          return logDirectory;
      }
docs: Determine directory to log import/export reports to