public static void copyFile(final Path fromFile, final Path toFile) throws IOException {
        Files.copy(fromFile, toFile);
//        try (final InputStream in = Files.newInputStream(fromFile); final OutputStream out = Files.newOutputStream(toFile)) {
//            streamToStream(in, out);
//        }
    }
Copy file to file.

@param fromFile the Path to copy (readable, non-null file)
@param toFile   the Path to copy to (non-null, parent dir exists)
@throws IOException
stroom-legacy/stroom-legacy-model_6_1/src/main/java/stroom/legacy/model_6_1/StreamUtil.java