I'm wondering, what is the best way to get a File in Java regardless of the OS?
File pdfSource = new File(directory.toString() + File.separator + "report_" + uuid + ".pdf");
or
File pdfSource2 = Paths.get(directory.toString(), "report_" + uuid + ".pdf").toFile();
Thanks! :)