code: public File output() throws IOException {
          File o = new File(output);
          if (!o.exists() && !o.mkdirs()) {
              throw new IOException("Unable to create output folder '" + output + "'");
          }
          return o;
      }
docs: Get the output directory.
  @return an existing output directory
  @throws IOException if the directory does not exists or was not created