import { copyFileSync } from "https://deno.land/x/deno@v0.28.0/cli/js/deno.ts";
Copies the contents of a file to another by name synchronously. Creates a new file if target does not exists, and if target exists, overwrites original content of the target file.
It would also copy the permission of the original file to the destination.
Deno.copyFileSync("from.txt", "to.txt");