import { copy } from "https://deno.land/x/deno@v0.28.0/cli/js/deno.ts";
Copies from src
to dst
until either EOF
is reached on src
or an error occurs. It returns the number of bytes copied and the first
error encountered while copying, if any.
Because copy()
is defined to read from src
until EOF
, it does not
treat an EOF
from read()
as an error to be reported.